Re: WM_COPYDATA



Maarten Wiltink wrote:

The normal solution is to serialise your objects and send not the
object, not a reference to it, but data that allow a copy to be
reconstituted at the other end.


Similar to the SendImage example in Gajics code?


Very probably, yes. I haven't seen the code but serialisation is a
well-known technique, and well-suited for sending images. The important
bit is to reconstruct the picture. The object involved don't really
matter.

Perhaps it helps to see "serialization" in two distinct ways:
1) send an object type and data (unidirectional, for cloning)
2) send an object reference, describing a server application and an object identifier, for interaction with a shared object (COM, Corba...).

Where COM, DCOM, OLE, ActiveX etc. are widely used as synonyms for Microsoft/Windows shareable object model and instances. References frequently are implemented and exchanged as handles, which are handled by Windows as appropriate (e.g. locally in shared memory, globally in distributed processing).

DoDi
.



Relevant Pages

  • Re: autoconf and shared library
    ... This is indeed the wrong newsgroup, but it seems you originally posted ... compiling does in fact have the libcrypto.so shared object. ... You also need to remove the direct reference to libcrypto from your ...
    (comp.lang.c)
  • Re: Copying multidimensional dynamic arrays
    ... Im Artikel, "Maarten Wiltink" ... >> array structure, not as stated just the inner one. ... I think you're copying pointers. ... Reference counted objects require the appropriate copy procedures, ...
    (comp.lang.pascal.delphi.misc)
  • Versioning a C++ Shared Object
    ... I have C++ objects in a shared object which I would like to version. ... symbols I was trying to reference. ... Here is the mapfile: ... Gregg ...
    (comp.unix.solaris)
  • Re: D5 - ClassCollection example??
    ... The social consequences of this code are left as an exercise to the ... reader. ... Maarten Wiltink ... I should have indicated that my reference to a "collection of wives" ...
    (comp.lang.pascal.delphi.misc)
  • Re: Smart pointer and thread
    ... using smart pointer. ... The reference to the shared object is 2. ... because if one thread crashes the state of whole process is usually unpredictable. ...
    (comp.programming.threads)