News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

DS_MODALFRAME error

Started by Magnum, February 27, 2013, 01:53:29 AM

Previous topic - Next topic

Magnum

rsrc.rc.
Writing BITMAP:1000,   lang:0x409,   size 958122.rsrc.rc (4): error RC2104 : undefined keyword or key name: DS_MODALFRAME


1000 BITMAP "Bitmap_2.bmp"

MYDIALOG DIALOG 10, 10, 320, 250
STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Number of gallons needed."
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
   CONTROL 1000, 1000, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE, 0, 0, 640, 499
   CONTROL "", 3000, EDIT, ES_LEFT | ES_AUTOHSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP, 128, 97, 100, 13
   CONTROL "Check it", 3001, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 240, 97, 52, 13
}

3005 ICON "Icon_1.ico"
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

you want the first line of your resource file to be....

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

it defines most of the windows constants you will use

hfheatherfox07

Hello,
You need to add an include file ( I use ResEd ) to do that ...
Masm32/include/resource.h

Than you are good to go  :biggrin:
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

hfheatherfox07

LOL
dedndave, you typed faster than I did .... Just saw your answer   8)
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

dedndave


Magnum

Thanks gentlemen, I don't know why I forgot the include file.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org