I have a Qt application, and when I run this application, there is a console opening behind it. In development it is nice because i see debug outputs on the console, but when I want to give this executable to the customer there should be no console window. how do I hide it?
(I am using Visual Studio 2008)
May be the better option will be not to simply remove (as Andy M suggested) but edit *.pro file adding something like
In debug you can see console window but not in release. I like it. =)
i use that method and it worked
Next solution ;)
Env: WixXP x64, msvs 2008, Qt v4.5.3
Set Projects settings/Configuration properties/Linker/System/SubSystem = Windows (/SUBSYSTEM:WINDOWS)
But For x64 there is linker error: LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup" To avoid it
Replace the following code:
by
It works fine for both - Win32 and x64 platforms.
In the project build linker options set
Or use the following #pragma in the source file with the
int main(...)
If you use Properties->Linker->System->SubSystem | Windows
And get a linker error.
You can look at Linker->Advanced-> Entry Point
and set the value to the name of your "main" function.
That is your Entry Point becomes, main, if your main function is a "main".