Open standalone app from file with extension

Hi,

I’m working on my standalone app made with JUCE. My app can save and restore app settings, which are saved with *.mae extension.

I associate Windows with my app, so when I find in File Explorer any *.mae file, and I double click on it, my app starts, but nothing happens (settings are not recalled).

What should I do to “tell my app” that when I double click on the *.mae file and the app starts, it should also read this file and recall settings?

Regards,
Camil

It is passed as a command line argument. You can access it in your override of:

virtual void JUCEApplication::initialise (const String &commandLineParameters) = 0;

and

virtual void JUCEApplication::anotherInstanceStarted (const String &commandLine)=0
2 Likes

Works good, thanks :smiley: