🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Couple of questions about: Creating & Importing Scrap Files...

#6470
From: Remy Lebeau (TeamB)
Date: Tue, 10 May 2005 20:25
52 lines
2939 bytes
"Oren Halvani" <HaHaHa@HaHaHa.com> wrote in message
news:4280f537@newsgroups.borland.com...

> what is the: IDataObject ? it's a interface, OK...but how do i use it
excatly...?

You need to derive a new class from it.  You can then implement all of its
methods needed to extract your desired data from it.  The same applies to
the IDropSource interface as well.

> i've looked in google and i found how to declare it (in 3 languages..)

That won't help you in this situation.

> i've also noticed this:

I don't know where you saw that, but ignore it.

> does it really mean, that if i'm using Win2000, ME, or below i
> can't use the function...?

No.  It works fine in those systems.  IDataObject and IDropSource have been
around since Win 95 and NT 3.1.

> can someone PLEASE help me to solve the problem, i've looked also
> in this great tutorial: http://www.catch22.net/tuts/dragdrop.asp
> but there is no description how to drop the selected text that i need
> (from the RichEdit) and drop it into the Windows Explorer (maybe is
> described, but i can't see it..)

You must not have paid attention to what the tutorial was actually telling
you.  It tells you exactly what you need to know.  I suggest you go look at
it again more closely.  Particularly at Parts 3-5, which show you exactly
how to implement the actual code for the derived classes you need to write
for the interfaces.  Then you need to go back to the links I gave you
earlier to see the dspecific details for the data formats that apply to
passing scrap data around.

> the site shows how to drag'n drop between 2 selfcreated-applications...

Exactly.  You have to implement one of those two applications yourself, so
do what the tutorial tells you to do.

> but what about the windows-explorer...

What about it?  You don't have to worry about how it is implemented.  Just
provide your necessary IDropSource and IDataObject objects and let Explorer
take care of the rest on its end.


Gambit
Technical Details
Message-ID: <42811890$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4280f537@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2d5efa8ad7d25500
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4280f537@newsgroups.borland.com>
Subject: Re: Couple of questions about: Creating & Importing Scrap Files...
Date: Tue, 10 May 2005 13:25:29 -0700
Lines: 54
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: <42811890$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115756688 68.69.17.41 (10 May 2005 13:24:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail