(LPCTSTR)IDD_MAIN_DLG,
Feb 26, 2017 at 7:58am
Hi,
The following code is transcribed from a video tutorial. My VS2013 suggests that IDD_Main_DLG is undeclared.
I checked again and again, but I don't know why it is wrong. The tutor on the video made it, but I failed.
Could anyone please help? Many thanks!
1 2 3 4 5 6 7 8 9 10 11 12
|
#include "resource.h"
#include <windows.h>
INT_PTR CALLBACK theProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return 0;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLind, int nCmdshow)
{
DialogBox (hInstance,(LPCTSTR)IDD_MAIN_DLG, NULL, theProc);
return 0; `
}
|
Feb 26, 2017 at 8:46am
Where did you declare it?
Normally you would do it in resource.h and use it the .rc file.
Mar 1, 2017 at 9:59am
Thank you for your reply
Mar 1, 2017 at 10:06am
You are welcome.
Is it working now ?
Topic archived. No new replies allowed.