Is it possible to to search for an allreay running instance of for example a thread and ''connect'' to it?
Something like this:
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
wnThread *th = find(wnThread);
if(th = NULL){
wnThread *th = new wnThread();
th->start();
}
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
wnThread *th = find(wnThread);
if(th = NULL){
wnThread *th = new wnThread();
th->start();
}
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I know about dde in Windows but i need a solution for independent operatingsystems.
Thanks
Bookmarks