🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dragging from application to explorer part 2

#5015
From: Stefano Bonifazi
Date: Thu, 27 Oct 2005 16:41
58 lines
3916 bytes
Thank You very much Mr. Chandler,
 It has been very kind of you ... I'm sorry that I used your working email 
address to request Your help,
I'd already searched that site, I think it's a very good one even if they do 
not consider BCB :-( ... too much VC++ oriented :-( , but it's free and for 
a student that means so much :-) .. I did not consider that project, and the 
ones about OLE drag & drop used the MFC.
I'll try to implement TBasicEnumFORMATETC class.
Anyway I already found a good FREE component with SOURCE CODE at Delphi 
Super page http://bdn.borland.com/homepages/dsp/index.htm
exactly http://delphi.icm.edu.pl/ftp/d30free/dragdrop.exe  Copyright � 
1997-99 Angus Johnson & Anders Melander, of course it's written in delphi 
(why do our cousins always have all the components they need?) and it would 
take sometime to translate (for learning) but the component can be installed 
fine into BCB 6 too ...
It would be great to have such a component for BCB users too ( I mean 
something written in BCB from which to learn) so if my studies give me some 
rest I'll try to follow your way and create a basic BCB drag & drop 
component.
 Thank You so much again,
Beast regards,
Stefano B.

"Damon Chandler (TeamB)" <editor@_REMOVE_THIS_SPAM_GUARD_bcbjournal.com> ha 
scritto nel messaggio news:4360f6a8$1@newsgroups.borland.com...
> Hi Sefano,
>   Providing the list of files via CF_HDROP (i.e., a DROPFILES structure) 
> is fine, but you'll need to implement the IEnumFORMATETC interface (e.g., 
> create a TBasicEnumFORMATETC class), and then return an instance to 
> IEnumFORMATETC via the TBasicDataObject::EnumFormatEtc() method.  This 
> method is called by Explorer to determine what formats you can provide. 
> The following page provides a rough example that should get you started...
>
>   http://www.codeproject.com/shell/sendtomail.asp
>
> See the section "IDataObject implementation."  Let me know if you can't 
> get things working, and I'll post an example.
>
> Cheers,
> --
> Damon (TeamB)
>
> C++Builder Developer's Journal
>  http://bcbjournal.com
> BCB Commonly Asked Questions
>  http://bcbjournal.com/bcbcaq
>
>
> Stefano Bonifazi wrote:
>>  In a my previous thread on this newsgroup (Dragging from application to 
>> explorer) I slightly modified Mr. Damon Chandler's sample about using his 
>> DragSourcePack to make it able to drag "file names" to other applications 
>> by changing the CF_TEXT support into CF_HDROP' one.
>> My problem now is that even if all applications seems to like that, and 
>> work fine when I drag a "file list" from a my application and drop into 
>> them, windows explorer refuses and does nothing :(
>> I don't know if I have to change the format to another one (and 
>> registering it) ... 
Technical Details
Message-ID: <436102b8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!fr.ip.ndsoftware.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <435cfa68@newsgroups.borland.com> <4360f6a8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69ce42933ddd83bf
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Stefano Bonifazi" <stefboombastic@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <435cfa68@newsgroups.borland.com> <4360f6a8$1@newsgroups.borland.com>
Subject: Re: Dragging from application to explorer part 2
Date: Thu, 27 Oct 2005 18:41:23 +0200
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 151.24.156.88
Message-ID: <436102b8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130431160 151.24.156.88 (27 Oct 2005 09:39:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!fr.ip.ndsoftware.net!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail