|
From: Vlada D. <dj...@im...> - 2002-12-19 08:06:32
|
----- Original Message ----- From: "Marc Heiligers" <ma...@e-...> To: "'Vlada Djurovic'" <dj...@im...>; "'DevC++ help'" <dev...@li...> Sent: Wednesday, December 18, 2002 1:27 PM Subject: RE: [Dev-C++] resource error > Hi, > > Is IDC_EDIT1 defined in the header (resource.h)? Also, I think (pretty sure > actually) winuser.h is included in windows.h, so you don't need to include > it again. Finally, try using "&New\tCtrl+N" to space the menu item > accelerators nicely. > > _____________________________ > Marc Heiligers > I solved the problem, but thanks for the tip on spacing menu items. I couldn't figure out how to do it right. > > -----Original Message----- > From: Vlada Djurovic [mailto:dj...@im...] > Sent: 17 December 2002 12:56 PM > To: 'DevC++ help' > Subject: [Dev-C++] resource error > > > Hi. > I'm trying to create dialog box for my app, but I keep getting parse error > in .rc file when compiling the project. I included windows.h in rc file and > now I'm wondering if I need some other header files. Here's the complete > file: > > #include "resource.h" > #include <windows.h> > #include <winuser.h> > > IDM_MENU MENU > BEGIN > POPUP "&File" > BEGIN > MENUITEM "&New Ctrl+N",ID_FILE_NEW > MENUITEM "&Open Ctrl+O",ID_FILE_OPEN > MENUITEM "&Save Ctrl+S",ID_FILE_SAVE > MENUITEM "&Close",ID_FILE_CLOSE > MENUITEM SEPARATOR > MENUITEM "E&xit Alt+F4",ID_FILE_EXIT > END > POPUP "&Edit" > BEGIN > MENUITEM "C&ut Ctrl+Z",ID_EDIT_CUT > MENUITEM "&Copy Ctrl+C",ID_EDIT_COPY > MENUITEM "&Paste Ctrl+V",ID_EDIT_PASTE > END > POPUP "&Format" > BEGIN > MENUITEM "&Dialog1", ID_FORMAT_DLG1 > MENUITEM SEPARATOR > MENUITEM "&Font",ID_FORMAT_FONT > END > POPUP "&Help" > BEGIN > MENUITEM "&About",ID_HELP_ABOUT > END > END > STRINGTABLE > BEGIN > ID_FILE_NEW "New" > ID_FILE_OPEN "Open" > ID_FILE_SAVE "Save" > ID_EDIT_CUT "Cut" > ID_EDIT_COPY "Copy" > ID_EDIT_PASTE "Paste" > END > > IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 264, 148 > STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU > CAPTION "Dialog" > FONT 8, "MS Sans Serif" > BEGIN > DEFPUSHBUTTON "OK",IDOK,207,7,50,14 PUSHBUTTON > "Cancel",IDCANCEL,207,24,50,14 > EDITTEXT IDC_EDIT1,7,7,160,118,ES_AUTOHSCROLL // > in this line I get a parse error > GROUPBOX "Static",IDC_STATIC,179,81,78,60 > CONTROL "Radio1",IDC_RADIO1,"Button",BS_AUTORADIOBUTTON,187,95, > 39,10 > CONTROL "Radio2",IDC_RADIO2,"Button",BS_AUTORADIOBUTTON,186,108, > 39,10 > CONTROL "Radio3",IDC_RADIO3,"Button",BS_AUTORADIOBUTTON,186,124, > 39,10 > END > > Thnks in advance! > ------------ > Vlada > |