I think that the easiest way for you to make a C++ command-line app that uses the Maestro would be to start with MaestroEasyExample and then modify the “main” function found in MaestroEasyExample.cpp. Currently, that function has 3 lines of code to open up a new MainWindow and and display it. You could replace those lines of code with your own code.
You won’t be easily able to call TrySetTarget because it is defined in the MainWindow class but you can copy the functions you need to MaestroEasyExample.cpp.
If you have further trouble, please tell us exactly what error message or unexpected behavior you are getting.
–David
