- Impact
- 1
Got it, Thanks. 
Edit: I had it :P
case WM_CREATE:{
HWND hwin = CreateDialog(GetModuleHandle(NULL),MAKEINTRESOURCE(IDD_DLG1),hwnd,WinProc);
ShowWindow(hwin,SW_SHOW);
if(hwin == NULL){
MessageBox(hwnd,"Error in resource","Error",MB_OK);
PostQuitMessage (0); }
No errors from the compiler. but the message box comes up XD
Edit: I had it :P
case WM_CREATE:{
HWND hwin = CreateDialog(GetModuleHandle(NULL),MAKEINTRESOURCE(IDD_DLG1),hwnd,WinProc);
ShowWindow(hwin,SW_SHOW);
if(hwin == NULL){
MessageBox(hwnd,"Error in resource","Error",MB_OK);
PostQuitMessage (0); }
No errors from the compiler. but the message box comes up XD
Last edited:














