Page 1 of 1

Compiler or validator has some issues (bug?)

Posted: Tue May 20, 2008 9:37 pm
by myarmor
I use codegears tools, and it seems RB (Resource Builder) can't evaluate expressions such as this:
From sdkddkver.h:

Code: Select all

#define NTDDI_VERSION_FROM_WIN32_WINNT2(ver)    ver##0000
#define NTDDI_VERSION_FROM_WIN32_WINNT(ver)     NTDDI_VERSION_FROM_WIN32_WINNT2(ver)

#define NTDDI_VERSION   NTDDI_VERSION_FROM_WIN32_WINNT(_WIN32_WINNT)
In commctrl.rh:

Code: Select all

#if (NTDDI_VERSION >= NTDDI_LONGHORN)
#define TBS_TRANSPARENTBKGND    0x1000  // Background is painted by the parent via WM_PRINTCLIENT
#endif
Upon evaluation of NTDDI_VERSION the result is:
Number expected but got ver in expression.

Posted: Wed May 21, 2008 5:18 am
by isiticov
Hello,

Yes, such complicated defines couldn't be parsed by Resource Builder