Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Jul : Registering a filetype as Drop-Target
| Subject: | Registering a filetype as Drop-Target |
| Posted by: | "Stefan Westner" (s@westner.de) |
| Date: | 6 Jul 2005 04:10:21 |
Hello,
I want to register a filetype - say .zzz - for my application. I
managed this already using msdn: if I double-click on my test.zzz my
registered application starts and the filename if passed as a
parameter. Every time I double-click on a .zzz-file a new instance of
my application is started.
But I want to make it smarter: if my application already runs the files
should send to the running instance rather then starting a new one. I
read somewhere to implement a drop-target and to register a CLSID but
nothing found any examples. If I have to register a CLSID my program
must be a COM-Server which implements IDroptarget. Right? Must it be a
.dll or could it be a .exe too? Any exmplaes how to mange that?
Thanks
Stefan Westner