Article View: borland.public.cppbuilder.nativeapi
Article #16443Drag and Drop Files for MS Office Apps?
From: Bruce Henderson
Date: Tue, 13 May 2003 14:16
Date: Tue, 13 May 2003 14:16
20 lines
1860 bytes
1860 bytes
If you right click on MS Word or MS Excel shortcuts on your desktop (under
Win 2000, Offiice XP), and look at the properties you see something like
"Microsoft Office XP Professional" for the Target.
If I drag and drop the MS Word Shortcut onto my program, the DragFileQuery
returns a filename "..\\Microsoft Word.lnk" as expected. But when I do a
pShLink->GetPath() it returns
"C:\\WINNT\\Installer\\{91110409-6000-11D3-8CFE-0050048383C9}\\wordicon.exe"
Needless to say ShellEx() will not execute this Path...
This appears to be the case with all MS Office Apps, Word, Excel, etc.. I
can drag and drop all of the other Short Cut links just fine. It is just
the MS Office Apps that look like they are playing by different rules...
What am I missing?
I would also like to drag and drop the Internet Explorer from my Desktop...
but it turns into a circle with a slash in it when I run it over my
program... This appears to be a separate issue altogether.
Technical Details
Message-ID:
<3ec0fe54$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,444dee8cebf3d953,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-13 07:25:58 PST From: "Bruce Henderson" <Bruce@CreativeControlSystems.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Drag and Drop Files for MS Office Apps? Date: Tue, 13 May 2003 09:16:24 -0500 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 216.202.195.25 Message-ID: <3ec0fe54$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052835412 216.202.195.25 (13 May 2003 07:16:52 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail