Hi,
I create a dialog using something like :
handle =3D CreateDialog(
hInstance,
MAKEINTRESOURCE(IDD_DIALOG1),
hWnd,
NULL);
But returned handle is null, which means (I guess) something went wrong.
So I tried :
DWORD Er =3D GetLastError();
Then retrieving the error string using FormatMessage (using the code =
snippet from the MSDN). But it doesn't help since error code is 0 and =
the translated string says there was no error.
Hmm. What do I do now ?
What are the usual reasons for CreateDialog to fail ?
In case it's important, the call takes place in a DLL dynamically loaded =
by a 3DS MAX plug-in, and hInstance and hWnd used to create the dialog =
are the ones from the MAX plug.
Pierre
|