-
WinMain()
Hello
I'm writing a windows application, and i must use WinMain()
Well MSDN syntax is: WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
The last parameter is the mode to show the window(Hidden, Visible...)
I'm tried to hide my Window but it does not Work, i tried this way:
Code:
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow=SW_HIDE)
{
DialogBox(hInstance,MAKEINTRESOURCE(DLG_MAIN),NULL,(DLGPROC)WinProc);
}
PS: I'm writing using resources
How i can solve this?
Thanks
Thanks
-
Well, if that is how you tried to change nCmdShow, you're not ready for Windows programming.
-
-
Get yourself a good book or something and start with the basics. Windows programming (and GUI programming in general) is a monster if you aren't really familiar with C or C++.