|
From: Vlada D. <dj...@im...> - 2003-04-17 10:42:53
|
Never mind, I got it. I forgot to include <windows.h> (I didn't know it was needed for rseource files). ----- Original Message ----- From: "Vlada Djurovic" <dj...@im...> To: "'DevC++ help'" <dev...@li...> Sent: Thursday, April 17, 2003 12:10 PM Subject: [Dev-C++] resource parse error > Hi! > > This is my problem: I'm trying to create a dialog for my app, but I got > stuck in the first step. The compiler gives me the "parse error" and I can't > figure out why. It's in the line beggining with STYLE > > -----begin code------ > #include "resorource.h" > > > > IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 186, 111 > STYLE DS_MODALFRAME|WS_POPUP|WS_CAPTION|WS_SYSMENU > CAPTION "Dialog" > FONT 8, "MS Sans Serif" > BEGIN > DEFPUSHBUTTON "OK",IDOK,129,7,50,14 > PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14 > LISTBOX IDC_LIST1,7,7,115,74,LBS_SORT | LBS_MULTIPLESEL | > LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP > EDITTEXT IDC_EDIT1,7,89,116,15,ES_AUTOHSCROLL,WS_EX_CLIENTEDGE > PUSHBUTTON "&Add text",IDC_BUTTON1,129,90,50,14 > END > ----end code----- > > The IDD_DIALOG, IDC_LIST1,IDC_EDIT1 and IDC_BUTTON1 are all defined in the > included header file. I'm using Dev-Cp 4.9.5.0 and Win2K. Hope somebody can > help me. Thanks! > > P.S. I used MS VC++ resource editor to create the dialog, and then I copied > the above code to my .rc file. Maybe it has something to do with this. > ------------ > Vlada > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |