tags:

views:

119

answers:

2
int WINAPI WinMain (HINSTANCE p1, HINSTANCE p2, LPSTR p3, int p4)
{

}

I want a console to pop up when I click a button,what's the proper way to do it?

UPDATE How do I output text to that console?

+2  A: 

Try using AllocConsole()

http://msdn.microsoft.com/en-us/library/ms681944%28VS.85%29.aspx

JTA
+1  A: 

check: http://msdn.microsoft.com/en-us/library/ms681944%28VS.85%29.aspx

Friedrich
How do I output text to that console?
httpinterpret
http://msdn.microsoft.com/en-us/library/ms687401%28v=VS.85%29.aspxWrite Console or just see Console Functions at:http://msdn.microsoft.com/en-us/library/ms682073%28v=VS.85%29.aspx
Friedrich