Hi, I was trying to create a modal dialog box with DialogBox(), and the function keeps failing.
my code:
DialogBox(GetModuleHandle(0), MAKEINTRESOURCE(DL_CREATE), hwnd, (DLGPROC)DialogProcCreate);
DL_CREATE is the id of a dialog resource, and DialogProcCreate is my dialog proc.
I know they work because the dialog ran with my Dev C++ IDE
with Code::Blocks, the DialogBox returns -1, and calling GetLastError() returns 87, which is the error
code for "invalid parameter"
I'm kinda frustrated, because it worked with Dev and not here, and Code::Blocks is better at everything else
thanks