www.digitalmars.com         C & C++   DMDScript  

c++.command-line - RCC and WINVER macro

Hello!

I compile RC-file:

F:\dm838c\bin>rcc -32 drafts.rc

RCC shows errors:

CONTROL "Register Now!", IDOK, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD |
WS_VISIBLE | WS_TABSTOP, 156, 104, 66, 14
^
drafts.rc(182) : Error: undefined identifier: 'BS_CENTER'

;=========================================================
If I comment "#IF..#ENDIF" statement in WINRESRC.H, 
RCC shows NO error:

/* #if(WINVER >= 0x0400) */
#define BS_TEXT             0x00000000L
#define BS_ICON             0x00000040L
#define BS_BITMAP           0x00000080L
#define BS_LEFT             0x00000100L
#define BS_RIGHT            0x00000200L
#define BS_CENTER           0x00000300L
#define BS_TOP              0x00000400L
#define BS_BOTTOM           0x00000800L
#define BS_VCENTER          0x00000C00L
#define BS_PUSHLIKE         0x00001000L
#define BS_MULTILINE        0x00002000L
#define BS_NOTIFY           0x00004000L
#define BS_FLAT             0x00008000L
#define BS_RIGHTBUTTON      BS_LEFTTEXT
/* #endif */
;=========================================================
Same trouble with DS_3DLOOK, SS_SUNKEN styles and a few others...
Apr 30 2004