|
From: Brad W. <c_b...@ya...> - 2007-12-11 20:45:40
|
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. |
|
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 |
|
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. |
|
From: Per W. <pw...@ia...> - 2007-12-14 16:19:18
|
A golden rule: Never type in code in emails or forum posts - unless you _know_ that you are 100% perfect. One single little character wrong may completely wreck your chances to get a correct answer. /pwm EMA System email: pw...@ia... Per Westermark web: http://iapetus.neab.net Vargvaegen 174B phone: +46 70 214 74 48 S-906 42 Umeaa Sweden On Thu, 13 Dec 2007, Brad Woosley wrote: > 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. |