JuceDemo passing on parameters


#1

Hello!

 

A probably easy question:

I am currently building something that looks a bit like the JuceDemo. The JuceDemo has several different .cpp files (like for example CameraDemo.cpp  and WebBrowserDemo.cpp). What is the most efficient way to pass a parameter on to another .cpp file?

For example: I get a String for a TextEditor in the CameraDemo.cpp. This string I want to use in the WebBrowser.cpp. What is the best way to move that data?

Kind regards,

 

Harrie