News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

error compiling a dialog resource

Started by allynm, December 12, 2009, 04:20:02 PM

Previous topic - Next topic

allynm

Hello everyone -

I am trying to compile a dialog resource using bin\rc.exe.  I get a message "undefined keyword or keyname" for the DS_MODALFRAME and other STYLE items.  I can't see what is amiss.  When I use \bin\porc.exe I don't get the error message, but I do get warnings.  Porc will generate a binary .res file but it doesn't get linked.  I haven't a clue as to what is going wrong here. 

The resource was originally created in OPENWatcom resource editor.  The RC file generated by the editor looks fine.

Thanks for any help,

Mark Allyn

MichaelW

Try putting a:

#include "\masm32\include\resource.h"

statement at the top of your resource definition. If you encounter something not included in resource.h, just add the necessary define statement to your resource definition. See resource.h for the syntax. Also, I seem to recall that Hutch recently posted an updated version of resource.h.

And I recalled correctly, for a change:

http://www.masm32.com/board/index.php?topic=12791.0


eschew obfuscation

allynm

Hi MichaelW-

That worked!  Everything assembles, links, and loads fine now.  I have to tell you, I would never have found Hutch's post without your help.

There is still a bug in the code, but I think I can sort that out.

Regards,
Mark Allyn