|
From: Brad W. <c_b...@ya...> - 2007-12-14 00:45:49
|
Thank you very much, this solved my problem. In my origional file I did have a new line after the include statement, and it was there when I typed it into the e-mail. Anyways, adding the file did help,
thanks again
Wobien <roo...@pl...> wrote:
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 -----
From: Brad Woosley
To: dev...@li...
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.
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
------------------------------------------------------------
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
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?
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
---------------------------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
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
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search. |