Posted August 2, 200519 yr IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "My About Box" FONT 8, "MS Sans Serif" BEGIN DEFPUSHBUTTON "&OK",IDOK,174,18,50,14 PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14 GROUPBOX "About this program...",IDC_STATIC,7,7,225,52 CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger", IDC_STATIC,16,18,144,33 END This is my resource file. In my main file, I'm trying to use MAKEINTRESOURCE(IDD_ABOUT). Now, it says that IDD_ABOUT is undefined. Anyone have any idea as to why? I use Bloodshed Dev-Cpp by the way, if that's relevant, which I think it is.
August 3, 200519 yr Make a resource.h file, where you define IDD_DIALOG and all the other resouces. Like: #define IDD_DIALOG 1000 #define IDD_NEXTTHING 1001 Then include it in your .c(pp) file, and in your resource.rc file. And if you do like that, I'm pretty sure you don't even have to use makeintresource.