This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
windres problem
- From: roy choye <roychoye at yahoo dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 27 Nov 2001 08:13:49 -0800 (PST)
- Subject: windres problem
Hello,
I'm having a problem of compiling my .rc file which
ever has a dialog reference. The attribute
DS_MODALFRAME is not recognised by cygwin/mingw32
windres or M'soft Visual C++ 6.
The exact error message produced is:
C:\CPP>windres -O coff -o dlg1.res dlg1.rc
windres: dlg1.rc:18: parse error
Visual C++ resource editor faulted the attribute
DS_MODALFRAME.
However, the .rc file with macros created by M'soft
Visual C++ is OK.
I'm curious as to why the attribute is faulted.
Here is the complete script. Can anyone help me out?
My OS is Win2000 Professional 32-bit.
From,
Roy.
// dlg1.rc
#include "dlg1.h"
// Icon
DIALG1 ICON "islander.ico"
// Menu
MYMENU MENU
BEGIN
MENUITEM "&Dialog Box", IDM_DIALOG
MENUITEM "&Quit", IDM_QUIT
END
// Dialog
FIRSTDIALOG DIALOGEX 0, 0, 186, 95
STYLE DS_MODALFRAME |WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK", IDC_OK, 129,49,50,14
PUSHBUTTON "Not OK", IDC_NOTOK, 129,68,50,14
ICON "DIALG1", IDC_ICON, 23,22,20,20
LTEXT "Static Control", IDC_STATIC, 83,17,75,16
END
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1