I am trying to create an application that is dialog-based. I use the dialog
editor to create a window. Then in my code I call DialogBox.
DialogBox ( hInstance, MAKEINTRESOURCE(main_menu), 0 , (DLGPROC)DlgMain);
GetLastError();
GetLastError returns 1408 - Invalid window; it belongs to other thread.
ERROR_WINDOW_OF_OTHER_THREAD
What is going on here? I want to use the Dialog box as a main window.
Thanks.
-FV