Quote Originally Posted by wangyingmm View Post
It IS a QT related question! I DO know how to do it with a normal .net project, but not a Qt project. that's why I ask here.
No, it's not related to Qt. Remove all Qt code from your app, take any 3rd party library unavailable by default on the target machine and you'll have the exact same problem. If you know how to solve it there, solve it the same way here. Your problem manifests itself BEFORE the application is executed thus how can it be related to what is INSIDE the application? If you don't believe then remove all code from main(), leave just a simple std::cout << "Hello" << std::endl; and see if it gets printed. If it's not then you should come to a conclusion that whatever you write as code of your program will not help your situation in any way (and thus since not a single line of Qt code was executed, this is not a problem related to Qt).