[SOLVED] How can a JUCE au plugin get its own version number?


#1

Hi guys,

Apologies for the newbish question, but what would be the best way for a JUCE au plugin to get its current version number? (i.e. the Introjucer's "Project Version" field). I'm sure this is super simple, but I haven't been able to answer my own question by searching the API reference / forums.

The reason for my question is that I want to write out the au plugin version when saving a preset to XML, and then when loading a preset compare the saved "pluginVersion" with the actual "pluginVersion" and show a "please update your plugin" warning if the saved preset was created by a higher version than the current plugin version.

Many thanks in advance!


#2

See the ProjectInfo namespace, in your JuceHeader.h file.


#3

Thanks so much for the concise and ultra quick reply Jules - exactly what I was after!