CreateDialog fails (Using resource but not MFC)
I am trying to show a dialog that I have created in reasource editor (without using MFC). I call CreateDialog like this.
but it fails. GetLastError() returns 1814, which is "The specified resource name cannot be found in the image file." IDD_PREFS_DIALOG is the only thing in the .rc file and it is a FORMVIEW. I have code from another project that is virtually identical and it works. I am not quite sure where to look for the problem. Any help would be appreciated. Oh, almost forgot, Compiling on MSVC++ 6.0
det.hwnd = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_PREFS_DIALOG), pps->hwnd, (DLGPROC)PrefsDialogProc);