Compiler or validator has some issues (bug?)

This forum designated to discuss the Resource Builder
Post Reply
myarmor
Posts: 1
Joined: Fri May 16, 2008 2:35 pm

Compiler or validator has some issues (bug?)

Post 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.

isiticov
Site Admin
Posts: 2207
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

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

Post Reply