Re: [Dev-C++] Resource problem using dialog
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-10-17 21:18:42
|
Don't know about the resolution of the previously reported problem, but somehow there seems to be a missing #define IDC_STATIC (-1) in an include file somewhere. I have it defined in winuser.h which gets included from winresrc.h which gets included from windows.h /Per W On Fri, 17 Oct 2003, EXT-Meyer, Robert J wrote: > 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. > 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 > > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo > The Event For Linux Datacenter Solutions & Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |