Article View: borland.public.cppbuilder.nativeapi
Article #9127ParamStr()
From: Gregory K.
Date: Wed, 04 Aug 2004 16:29
Date: Wed, 04 Aug 2004 16:29
24 lines
1625 bytes
1625 bytes
Hello, I have written an application handling a certain file type. I have also registered it in the windows registry so there appears a special action in the right click menuand when clicking on it a command "c:\.....\myprogr.exe %1" is sent. At the app. side I am getting the %1 (which is the file name) using ParamStr(1). So far, so good. My problem is the following one: Supposed I have a shortcut pointing to my file one the desktop. Now, I am right-clicking on it and get in the menu the desired special action for my file type. Now I click the action in the menu. My problem is that in this situation ParamStr() is giving me the path to the pointed file and NOT the shortcut path which I am more interested in. I would appreciate very much a tip how to manage getting the shortcut path to my file. Thank you very much! Gregory
Technical Details
Message-ID:
<411100dc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b671c17e7d6b1e9d,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Gregory K." <gkoslov@walla.co.il> Newsgroups: borland.public.cppbuilder.nativeapi Subject: ParamStr() Date: Wed, 4 Aug 2004 18:29:43 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 80.230.212.227 Message-ID: <411100dc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091633372 80.230.212.227 (4 Aug 2004 08:29:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail