🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3930

Re: SHGetFolderPath generates errors in header file

#3930
From: bogon
Date: Wed, 19 Apr 2006 19:31
25 lines
2184 bytes
Kris wrote:
> I managed to solve my problem...
>>#define NO_WIN32_LEAN_AND_MEAN
>>#include "shlobj.h"
> 
> Didn't work.
> 
> Then I went to project options / path & defines / conditional defines
> and added NO_WIN32_LEAN_AND_MEAN to it instead of using a #define in
> the header file.
> 
> This solved the compilation problems.

ok, so my reading's months late but for the sake of search engines 
everywhere...  From my recollection of past news items, I believe it's 
#pragma instead of #define.  However, for the life of me, I have *no* 
idea what the difference.  One of these days, I'll get to that level of 
programming.  ciao.
---------->  signature = 6 lines follows <--------------
Neil Duffee, Joe SysProg, U d'Ottawa, Ottawa, Ont, Canada
telephone:1 613 562 5800 x4585                 fax:1 613 562 5161
mailto:NDuffee of uOttawa.ca     http:/ /aix1.uottawa.ca/ ~nduffee
"How *do* you plan for something like that?" Guardian Bob, Reboot
"For every action, there is an equal and opposite criticism."
"Systems Programming: Guilty, until proven innocent" John Norgauer 2004
Technical Details
Message-ID: <44469004@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <b47ls1lmu1c0qs74336v76ddlgo20h4n2k@4ax.com> <519ls1l7fqe7peogb5mmndvm81vqutvbch@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eb598d5296eede42
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 19 Apr 2006 15:31:17 -0400
From: bogon <foo@bar>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-ca, fr-ca
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: SHGetFolderPath generates errors in header file
References: <b47ls1lmu1c0qs74336v76ddlgo20h4n2k@4ax.com> <519ls1l7fqe7peogb5mmndvm81vqutvbch@4ax.com>
In-Reply-To: <519ls1l7fqe7peogb5mmndvm81vqutvbch@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 137.122.170.33
Message-ID: <44469004@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145475076 137.122.170.33 (19 Apr 2006 12:31:16 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail