[Dev-C++] Resource problem using dialog
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: EXT-Meyer, R. J <rob...@bo...> - 2003-10-17 21:06:22
|
I'm new to windows programming and dev-c++. As I was going through an =
online tutorial, I ran across the exact same problem as yokosima on your =
mailing list dated 2003-08-12 02:48. Is this user error or a larger =
problem? His problem states:
The two lines at the bottom (commented out) gives me a 'parse error' =
when I try to compile. I basically copied & pasted it from a tutorial =
example and modified the text between the quotes and changed the ID to =
DLG_HELP which I defined in the second included header file but it won't =
work, not even before I made any changes.=20
With the GROUPBOX and CTEXT lines commented out it does work.. But what =
good is it without the taunting? :) I'm using 4.9.8.0
#include "resource.h"
#include "windows.h"
IDR_MYMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Stuff"
BEGIN
MENUITEM "&Go", ID_STUFF_GO
MENUITEM "&About", ID_HELP_ABOUT
MENUITEM "G&o somewhere else", 0, GRAYED
END
END
IDI_MYICON ICON "Simple.ico"
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
|