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?
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?
Try using AllocConsole()
http://msdn.microsoft.com/en-us/library/ms681944%28VS.85%29.aspx