Hiding the console?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Keanu

Hiding the console?

Post by Keanu »

There's a way to hide the console panel and change my application into a Win32 application?
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

in MSVC--
compile in release mode and use this:

Code: Select all

//int main()
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, 
INT )
{
..main code..
}
to go back to Debug mode, comment out INT WINAPI WinMain and uncomment int main()


this doesnt work in DevCpp, though
a screen cap is worth 0x100000 DWORDS
Keanu

Maybe you're right

Post by Keanu »

I tryied out your code but i got the same message. I'm using Visual C++ 6.0, maybe there are some settings to change in the project tab
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

probably. I dont have MSVC infront of me, but I'd try playing around with 'build for console or build windowed app' type options.
a screen cap is worth 0x100000 DWORDS
Keanu

Solution found

Post by Keanu »

The complete solution is on the beginner help forum
Post Reply