Skip to main content
GameDev.net gamedev.net
🔒 Locked

Resource Compile Error

Started by Pagan Oct 9, 2001 at 3:18 AM 3 replies 4k views
Original Post
Pagan
Pagan
hi, when i compile a program with simple about dialog, and my resource file contains these: IDD_ABOUTBOX DIALOG DISCARDABLE 22, 17, 230, 75 STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU CAPTION "About" FONT 8, "System" BEGIN DEFPUSHBUTTON "OK",IDOK,195,6,30,11,WS_GROUP DEFPUSHBUTTON "CANCEL", IDCANCEL END and comes with the error message: Compiling resources... D:\PROJECTS\Sample1\Sample1.rc (17): error RC2104 : undefined keyword or key name: DS_MODALFRAME Error executing rc.exe. what is the problem? how can i solve it? thanks Terry
SloppyJoe
SloppyJoe
I haven''t tried this or anything but replace it with WS_MODALFRAME instead.

I sure hope it works.
Tell me if it doesn''t.

SloppyJoe
Pagan
Pagan
It still doesn''t work.
I''ve got a new project from the the Win32 wizard, it has the same resource framework, it works. I don''t why. Could anybody tell me, thanks.

Terry
Maxxes
Maxxes
You should add

#include "afxres.h"

at the top of your file.

How should the compiler know what DS_MODALFRAME is without a header file?

Also I think you have to add some parameter to the second DEFPUSHBUTTON line.
Pagan
Pagan
Is that means I should include some C runtime header files? just like

#include
#include
#include
#include

i get a header file as the wizard generated, but another problem comes,

-------------------Configuration: Sample1 - Win32 Debug--------------------
Compiling resources...
D:\PROJECTS\Sample1\resource.h(6) : fatal error RC1004: unexpected end of file found
Error executing rc.exe.

Sample1.exe - 1 error(s), 0 warning(s)

how can i solve it?

thanks
terry

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.