Article View: borland.public.cppbuilder.nativeapi
Article #3788Re: Resolving a shortcut
From: Remy Lebeau (TeamB)
Date: Mon, 24 Apr 2006 18:26
Date: Mon, 24 Apr 2006 18:26
29 lines
1963 bytes
1963 bytes
"Jos�" <jose@127.0.0.1> wrote in message news:rtjk42t6426h38shott0522k1on8evq50r@4ax.com... > It's pretty complicated. Welcome to Shell programming. Most things in the Windows Shell is exposed as COM interfaces. > I am surprised that there is no such thing as a simple function: String ResolveShortCut (String lnkfile); The article I pointed you to has the code for such a function. > Besides, I may be a dunce, but the function ResolveIt on > the website doesn't compile: Works fine for me. You probably did not include shlobj.h into your code. Note that for shlobj.h, if you are using BCB 5 or higher, you need to add NO_WIN32_LEAN_AND_MEAN to the Conditionals list in the Project Options. Note also that StringCbCopy() is declared in strsafe.h, which is not shipped with BCB at all. So you will have to download the latest Borland Platform SDK from http://bccsdk.sourceforge.net in order to use it. Otherwise, use strncpy() instead Gambit
Technical Details
Message-ID:
<444d18f2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.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-mailReferences:
<tk8h4252vqq8t5t08lkfpc9k20tb0gubom@4ax.com> <4448af78$1@newsgroups.borland.com> <rtjk42t6426h38shott0522k1on8evq50r@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,444f35977a7e1ad9 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <tk8h4252vqq8t5t08lkfpc9k20tb0gubom@4ax.com> <4448af78$1@newsgroups.borland.com> <rtjk42t6426h38shott0522k1on8evq50r@4ax.com> Subject: Re: Resolving a shortcut Date: Mon, 24 Apr 2006 11:26:32 -0700 Lines: 31 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: 68.69.17.41 Message-ID: <444d18f2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145903346 68.69.17.41 (24 Apr 2006 11:29:06 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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