DialogBox is failed and return -1
GetLastError give the error number 1813
1813 The specified resource type cannot be found in the image file. ERROR_RESOURCE_TYPE_NOT_FOUND.
I've created my dialog with the Visual Studio editor. Just a basic window without new control.
The wizard have created and insered resource.h automaticaly in the project.
In MPPluginC.h, I have add #include "resource.h"
my .rc file:
quote:
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOG1 DIALOGEX 0, 0, 206, 134
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,149,7,50,14
PUSHBUTTON "Annuler",IDCANCEL,149,24,50,14
END
I'm not undrstanding why this error?