🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: trying to acces to a file by means of a link file

#10542
From: Damon Chandler (TeamB)
Date: Fri, 02 Apr 2004 13:03
50 lines
2474 bytes
Frank,
   <shlobj.h> is the header that you need.  In order to use this header 
w/o compile-time errors in newer versions of BCB, you have to go to the 
"Directories/Conditionals" tab of the "Project Options" dialog, and then 
enter NO_WIN32_LEAN_AND_MEAN in the "Conditional defines" field.  If 
this doesn't work for you, what's the error message that you're getting?

--
Damon (TeamB)


Frank Chisme wrote:
> Thank you Damon,
> 
> I see that this is the way I have to follow, but now I have another problem
> 
> �Do you know which is the header I have to include to be able to use
> IShellLink?
> I am trying with #include <shlobj.hpp> and #include <shlobj.h>
> and it doesn�t work.
> 
> Thank you.
> 
> 
> 
> 
> 
> "Damon Chandler (TeamB)" <dmc27@cornell.edu> escribi� en el mensaje
> news:406cbe4b$1@newsgroups.borland.com...
> 
>>Hi Frank,
>>   You can use the IShellLink COM interface to retrieve the
>>path+filename of the file that the link refers to; see here for an
>>example...
>>
>>http://tinyurl.com/2taea
>>
>>Good luck,
>>--
>>Damon (TeamB)
>>
>>
>>Frank Chisme wrote:
>>
>>>where "fName" is "personal.ini.lnk".
>>>And my application doesn�t get to personal.ini content.
>>>�How can I access personal.ini file by means of personal.ini.lnk?
> 
> 
> 
Technical Details
Message-ID: <406d644f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <406c1fc2$1@newsgroups.borland.com> <406cbe4b$1@newsgroups.borland.com> <406d38cc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,a53a58dfad4a9f1a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-02 05:05:41 PST
Date: Fri, 02 Apr 2004 08:03:26 -0500
From: "Damon Chandler (TeamB)" <dmc27@cornell.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: trying to acces to a file by means of a link file
References: <406c1fc2$1@newsgroups.borland.com> <406cbe4b$1@newsgroups.borland.com> <406d38cc$1@newsgroups.borland.com>
In-Reply-To: <406d38cc$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 24.58.5.101
Message-ID: <406d644f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080910927 24.58.5.101 (2 Apr 2004 05:02:07 -0800)
Lines: 50
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail