🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What is the Correct way to get a special folder location?

#15447
From: Remy Lebeau (TeamB)
Date: Sat, 28 Jun 2003 03:53
27 lines
1817 bytes
"Zack" <a@bv.com> wrote in message news:3efcf824@newsgroups.borland.com...

> And somehow - my source can still see shlobj.h.

That is because some parts of the VCL itself include ShlObj.hpp which in
turn includes shlobj.h.

> 1) How to I force this linker to look at ShFolder.hpp
> first for this function and Not use shlobj?

You don't.  If you must use SHFolder.DLL, then don't static link to it at
all.  Load the desired function(s) dynamically at runtime via LoadLibrary()
and GetProcAddress() instead.

> 2) I also use ShellExecute which is in shell32.dll.....

Correct.

> is there a version of this function that lives in a dll that
> works across all OS's from 95, 98, NT, 2K to XP ?

ShellExecute() is already available in all versions of Windows, as it is a
function that Windows has always used internally itself.


Gambit
Technical Details
Message-ID: <3efd1034$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3efcf824@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,780217d415786dcd
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-27 20:52:39 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3efcf824@newsgroups.borland.com>
Subject: Re: What is the Correct way to get a special folder location?
Date: Fri, 27 Jun 2003 20:53:30 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3efd1034$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056772148 207.175.226.26 (27 Jun 2003 20:49:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail