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???
------------------------------------------------------------------------------------------
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???
I'm no expert but DS_SYSMODAL is defined in my resource.h file
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
#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
On the other hand...
why not just
:tongue:
Greets YaWNS
why not just
#include "c:\masm32\include\resource.h"
:tongue:
Greets 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?
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?
Like yawns said use
Instead of just trying to
Does this still give u trouble?
#include "\masm32\include\resource.h"
Instead of just trying to
#include "resource.h"
Does this still give u trouble?
Thanks, it's already OK.