-
December 24th, 2004, 12:47 AM
#1
Dev-C++ and Resources
Hello everyone,
I'm using Dev-C++ and going through a Windows API tutorial (http://winprog.org/tutorial/), and I've stumbled into a problem I can't solve: I'm trying to make a Dialog window, but for some reason Dev-C++ gives me the following error whenever I try to build a resource:
C:\DEV-C_~1\Bin\windres: D:\\school\\test\\windows\\rsrc.rc:5: parse error
Line 5 in my resource file is:
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
The entire resource file looks like this:
#include "resource.h"
MY_ICON ICON MOVEABLE PURE LOADONCALL DISCARDABLE "C:/Dev-C++/Icon/MAINICON.ICO"
MY_DIALOG DIALOG 0, 0, 200, 200
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog title"
FONT 8, "Helv"
BEGIN
END
It's important to note that MY_ICON and MY_DIALOG are both defined in resource.h (and furthermore, they are the ONLY definitions in that file), and that I'm getting this message no matter WHAT I put after the STYLE.
Also, the resource builds fine without the dialog.
Any thoughts?
Thanks all,
-ik
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|