Okay, I've just realized the problem (I think): you're trying to use CreateWindow to make a window that's already there. You need to use the DialogBox() function, like this:
That should most likely fix your problem.Code:DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(/*Dialog Name*/), hwnd, /*Dialog Procedure*/);
For a start.....
Is hMenu VALID when you use it?
Does the WM_INITDIALOG in the aboutdlg proc get called (put a breakpoint in there)?
Why are you returning TRUE to WM_INITDIALOG in the aboutdlg proc (do you have a control to set focus to)?
Why are you not testing that calls to create windows/dialogs succeed (ie return valid HWNDs before you use the HWND)?
What does GetLastError() return when you app fails?
Where is your use of IsDialogMessage()?
Where is your call to RegisterClass() for the About Dlg? [as required by your use of DefDlgProc()]
As your code is all over the place (not indented correctly, shortcuts in syntax, etc) I can not see the error (nor can I be bothered re-indenting it to see if it is a syntax error).
I have used many versions of MSVC and not had the issue you describe when posting here.
Look at the code posted by Elysia. The syntax error in that code is MUCH easier to spot than in your code.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill