I write in .rc file like this:

------------------------------------------------------------------------------------------
MyDialog DIALOG 10, 10, 205, 60
STYLE 0x0004 | DS_CENTER | WS_CAPTION | WS_MINIMIZEBOX |
WS_SYSMENU | WS_VISIBLE | WS_OVERLAPPED | DS_MODALFRAME |
DS_3DLOOK | DS_SYSMODAL
------------------------------------------------------------------------------------------

but I got the error:

------------------------------------------------------------------------------------------
Writing MENU:FIRSTMENU, lang:0x409, size 50.DEL.rc (35):
error RC2104 : undefined keyword or key name: DS_SYSMODAL
------------------------------------------------------------------------------------------

HOW CAN I USE THE DS_SYSMODAL STYLE FOR FOR A SYSTEM MODAL DIALOG???
Posted on 2002-08-21 15:39:44 by Iceberg
I'm no expert but DS_SYSMODAL is defined in my resource.h file
#define DS_SYSMODAL         0x02L

At line 1130

Maybe just typing in the value and see if that works....if it does then .. needless to say it isn't defined.

Hope this helps
gorshing
Posted on 2002-08-21 15:48:36 by gorshing
On the other hand...

why not just
#include "c:\masm32\include\resource.h"


:tongue:

Greets YaWNS
Posted on 2002-08-21 16:29:54 by YaWNS
Thank you for you answer, I've fixed it.

But when I tried compile the .rc file without the

------------------------------------
include "resource.h"
------------------------------------

and insert the line

------------------------------------
#define DS_SYSMODAL 1000
------------------------------------

in .rc file, it's not works.

And it will work only with the value 0X02L, Why?
Posted on 2002-08-21 17:03:12 by Iceberg
Like yawns said use

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


Instead of just trying to

#include "resource.h"


Does this still give u trouble?
Posted on 2002-08-23 09:30:43 by gorshing
Thanks, it's already OK.
Posted on 2002-08-23 16:43:16 by Iceberg