triperzonak
4th February 2009, 09:24
hi,
i have created an application(exe) from QT that requires parameter. This program will be called by other application (not build by qt) passing the parameter needed however the program is not working..
if i try to access it through command prompt the application shows, but when it was called by the other application it never shows but the application is running in the task manager.
Then i try to remove qapplication on the main and its uis and do simulation creating a file if it was called with the parameter and after it was called, the file was created.
int main(int argc, char *argv[])
{
QString parameter1 = argv[1];
QApplication app( argc, argv);
QMessageBox::information(0,"",parameter1);
createfile(parameter1);
/*with qapplication the messagebox is not showing and file was never created means also ui will not work cause it will require qapplication (i already tried it with ui)*/
}
int main(int argc, char *argv[])
{
QString parameter1 = argv[1];
createfile(parameter1);
}
/*the file was created*/
any tips guys? :confused:
i have created an application(exe) from QT that requires parameter. This program will be called by other application (not build by qt) passing the parameter needed however the program is not working..
if i try to access it through command prompt the application shows, but when it was called by the other application it never shows but the application is running in the task manager.
Then i try to remove qapplication on the main and its uis and do simulation creating a file if it was called with the parameter and after it was called, the file was created.
int main(int argc, char *argv[])
{
QString parameter1 = argv[1];
QApplication app( argc, argv);
QMessageBox::information(0,"",parameter1);
createfile(parameter1);
/*with qapplication the messagebox is not showing and file was never created means also ui will not work cause it will require qapplication (i already tried it with ui)*/
}
int main(int argc, char *argv[])
{
QString parameter1 = argv[1];
createfile(parameter1);
}
/*the file was created*/
any tips guys? :confused: