Thanks fmc, that's good info. But I really need something that I can distribute easily in a release... something as simple as a .pri file to be included at the bottom of the project file (as I described in previous post) does the job perfectly.
I've got the system working really well now, and I can include ChainLink scripts seamlessly in the C++ code like this:
#include "chainlink_engine.h"
int main(int argc, char *argv[]) {
integer my_int=5; //I declare some data in C++
//I can pass this variable into chainlink, as long as chainlink recognizes the data type
CHAINLINK << integer my_int
CHAINLINK {
X=rand(100,100,my_in); %Now I can excecute arbitrary chainlink commands here
H=viewmda(X);
}
//and then even retrieve a pointer to the widget created in chainlink
CHAINLINK >> QWidgetPtr H
if (!H) return -1;
H->setWindowTitle("Hello World!");
return app.exec();
}
#include "chainlink_engine.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
integer my_int=5; //I declare some data in C++
//I can pass this variable into chainlink, as long as chainlink recognizes the data type
CHAINLINK << integer my_int
CHAINLINK {
X=rand(100,100,my_in); %Now I can excecute arbitrary chainlink commands here
H=viewmda(X);
}
QWidget *H;
//and then even retrieve a pointer to the widget created in chainlink
CHAINLINK >> QWidgetPtr H
if (!H) return -1;
H->setWindowTitle("Hello World!");
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Only one extra line needed at bottom of project file!
Bookmarks