Icon View Incident Report

Minor Minor
Reported By: Philip Read
Reported On: 6/8/2011
For: Version 2.05 Build 9
# 3468 Including shlobj.h Header File with C++Builder Project Can Cause Compilation Error

I use an #include <shlobj.h> in my program to access SHGetFolderPath and grab various folder paths for the Windows version being used and this works perfectly. I can grab theCSIDL_COMMON_APPDATA or the CSIDL_LOCAL_APPDATA and so on.

Trouble is when I include the ElevateDB components in the program it appears to clash with shlobj.h

On compiling it brings up edbenv.hpp on line128, 129 and 130:

static const System::ShortInt CSIDL_PERSONAL = 0x5;
static const System::ShortInt CSIDL_LOCAL_APPDATA = 0x1c;
static const System::ShortInt CSIDL_COMMON_APPDATA = 0x23

With the error messages...

[BCC32 Error] edbenv.hpp(128): E2040 Declaration terminated incorrectly
[BCC32 Error] edbenv.hpp(129): E2040 Declaration terminated incorrectly
[BCC32 Error] edbenv.hpp(130): E2040 Declaration terminated incorrectly


Resolution Resolution
Fixed Problem on 6/9/2011 in version 2.05 build 10


Products Affected Products Affected
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image