|
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. |