[Qt-interest] hide black command screen on windows
Marc Zinck
zinck at ciespace.com
Wed May 19 23:25:59 CEST 2010
In Visual Studio:
1) Set the SubSystem to Windows (/SUBSYSTEM:WINDOWS). Find this setting
in the project properties dialog (right click on project and select
Properties) under Configuration Properties -> Linker -> System -> SubSystem.
2) Supply a WinMain() fuction. I do something like this:
int main(int argc, char** argv){
/* standard program entry point */
}
#ifdef WIN32
int WINAPI WinMain(HINSTANCE /*inst*/,HINSTANCE /*dumb*/,LPSTR
/*param*/,int /*show*/){
/* Win32 program entry point */
// you should generated argv & argc from real the commandline by
parsing the parameters to WinMain
int argc = 1;
char** argv;
argv = (char**)malloc(sizeof(char*) * argc);
argv[0] = _strdup("application");
return main(argc, argv);
}
#endif
--
Marc Zinck
Ciespace Corporation
On 5/18/2010 12:12 PM, Frank Lutz wrote:
> Hi!
>
> Do there is any possibility to hide the black windows command screen on
> application start?
> Thanks!
>
> Greetings
> Frank
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list