🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Resolving a shortcut

#3858
From: Jos�
Date: Sat, 22 Apr 2006 15:54
30 lines
2270 bytes
On Fri, 21 Apr 2006 03:04:14 -0700, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote in borland.public.cppbuilder.nativeapi:

>> I read a file with the LNK extension. How to find the
>> file it refers to?
>
>Use the IShellLink interface to read/write .lnk files:
>
>    Shell Links
>
>http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/shortcuts/shortcut.asp

It's pretty complicated. I am surprised that there is no such thing as
a simple function: String ResolveShortCut (String lnkfile);

Besides, I may be a dunce, but the function ResolveIt on the website
doesn't compile:

(190): E2451 Undefined symbol 'IShellLink'.
(198): E2268 Call to undefined function 'CoCreateInstance'.
(198): E2451 Undefined symbol 'CLSID_ShellLink'.
(199): E2451 Undefined symbol 'IID_IShellLink'.
(202): E2451 Undefined symbol 'IPersistFile'.
(205): E2451 Undefined symbol 'IID_IPersistFile'.
(218): E2451 Undefined symbol 'STGM_READ'.
(231): E2451 Undefined symbol 'SLGP_SHORTPATH'.
(240): E2268 Call to undefined function 'StringCbCopy'.
(248): E2268 Call to undefined function 'HandleErr'.
-- 
Jos�
Technical Details
Message-ID: <rtjk42t6426h38shott0522k1on8evq50r@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder3.cambrium.nl!feed.tweaknews.nl!195.14.215.230.MISMATCH!news.netcologne.de!nhp.netcologne.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <tk8h4252vqq8t5t08lkfpc9k20tb0gubom@4ax.com> <4448af78$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,444f35977a7e1ad9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: Jos� <jose@127.0.0.1>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Resolving a shortcut
Date: Sat, 22 Apr 2006 17:54:20 +0200
Message-ID: <rtjk42t6426h38shott0522k1on8evq50r@4ax.com>
References: <tk8h4252vqq8t5t08lkfpc9k20tb0gubom@4ax.com> <4448af78$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 82.75.14.62
X-Trace: newsgroups.borland.com 1145721285 82.75.14.62 (22 Apr 2006 08:54:45 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder3.cambrium.nl!feed.tweaknews.nl!195.14.215.230.MISMATCH!news.netcologne.de!nhp.netcologne.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail