Article View: borland.public.cppbuilder.nativeapi
Article #9496NO_WIN_LEAN_AND_MEAN
From: Brent
Date: Tue, 06 Jul 2004 02:28
Date: Tue, 06 Jul 2004 02:28
28 lines
1886 bytes
1886 bytes
Hi Guys, Upgrading from Version3 to Version6 of BCB, and I'm having compilation issues. Hopefully you'll know how to get around this one. I'm using the SHBrowseForFolder Win32 function, and I've included the shlobj.h header file in my header. Problem is, I get an error - Multiple declaration for FOLDERSETTINGS etc. I've tracked it down, and discovered that the VCL has their own shlobj.hpp file popping up. I've had a look at this file, and below is an extract from the code: //-- user supplied ----------------------------------------------------------- // If problems occur when compiling win32 structs, records, or // unions, please define NO_WIN32_LEAN_AND_MEAN to force inclusion // of Windows header files. #if defined(NO_WIN32_LEAN_AND_MEAN) I've tried #define NO_WIN32_LEAN_AND_MEAN at the top of the header file, and I get the same problem. If I don't include shlobj.h in the header, then the compiler doesn't know about the BROWSEINFO type. Nothing I do seems to help. Anyone got any clues (or do I have to go back to BCB3) thanks, Brent
Technical Details
Message-ID:
<40ea0e48$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,224ec3fa9652eb3e,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Brent" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: NO_WIN_LEAN_AND_MEAN Date: Tue, 6 Jul 2004 12:28:26 +1000 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 203.10.46.175 Message-ID: <40ea0e48$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089080904 203.10.46.175 (5 Jul 2004 19:28:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail