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