From: Wobien <roo...@pl...> - 2007-12-13 10:46:08
|
1. You have to begin a new line after an include statement 2. You have to include windows.h in wour resource file succes! wobien ----- Original Message -----=20 From: Brad Woosley=20 To: dev...@li...=20 Sent: Tuesday, December 11, 2007 9:45 PM Subject: [Dev-C++] Dialouge boxes I am attempting to learn how to use Win32 to create a GUI program but = am having problems with the Dialouge boxes.=20 Here is what I have done so far (the dashed line seperates files) --------------------------------------------------- Resource.h #define IDD_DLGFIRST 101 -------------------------------------------------------- Wind32D.rc #include "Resource.h" IDD_DLGFIRST DIALOG 260, 200, 188, 95 STYLE = DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Win32 = Programming" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "OK", = IDOK, 130, 10, 50, 14 END=20 ------------------------------------------------------------ Then, when I try to compile the program, I get an error. Included = below is the text from the compiler tab, Resources tab, and Compile log. C:\Documents and Settings\Bradley\Desktop\Win32\Project5\Makefile.win [Build Error] [Project1_private.res] Error 1 ---------------------------------------------------------------------- Line 4 in file Win32D.rc : parse error ----------------------------------------------------------------- Compiler: Default compiler Building Makefile: "C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\Makefile.win" Finding dependencies for file: C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\main.cpp Executing make... make.exe -f "C:\Documents and = Settings\Bradley\Desktop\Win32\Project5\Makefile.win" all windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O = coff=20 windres.exe: Win32D.rc:4: parse error make.exe: *** [Project1_private.res] Error 1 Execution terminated ------------------------------------------------- Could anyone please tell me what it is that I am doing wrong?=20 -------------------------------------------------------------------------= ----- Looking for last minute shopping deals? Find them fast with Yahoo! = Search. -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= SF.Net email is sponsored by:=20 Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php -------------------------------------------------------------------------= ----- _______________________________________________ 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 |