Re:OLE Drag&Drop vs Drag&Drop+Serialization
Hello
I keep save post that I think will come in handy. Here are sites that a
suppose to have drag and drop
Also there is a example of drag and drop in the book Delphi Developers
Handbook.
This is from Peter Below (TeamB)
there are some examples for OLE drag&drop at
ftp://www.melander.dk/anme/delphi/DragDropDemo.zip
http://godard.oec.uni-osnabrueck.de/student_home/dsteinwe/delphi/Diet...
hiSite.htm
<<<<
As for the serialization there is a way to serialize delphi components it is
something like this.
serialization
var Stream: TMemoryStream;
Writer: TWriter;
begin
Stream := TMemoryStream.Create;
Writer := TWriter.Create(Stream, 1024)
Writer.Component(MyObject);
un-serailize
begin
Reader := TReader.Create(Stream,1024)
MyObject := Reader.ReadComponent;
You could also look at the DCOM Streaming example in the delphi Informant
magazine. The code for it can be downloaded from
www.informant.com/delphi/dinewupl.htm File name: DI9803DB.ZIP. This code
can send a object to another application via com.
Quote
George Birbilis wrote in message <35896E12.D7260...@cti.gr>...
>I want to exchange Delphi class instances from one Delphi app to another
>one
>with Drag&Drop...
>I thought of using OLE Drag&Drop but it's a bit complicated...
>Could I use
>serialization and standard copy
>+
>paste and deserialization
>to achieve this?
>Does Delphi serialize objects automatically, or do I have to implement
>some
>Serialize method for every new class I define?