Board index » cppbuilder » How to: pass custom objects to a comserver

How to: pass custom objects to a comserver

Hello,

I have some custommade objects that I want to passon to my comserver. How
can I do this best? I don't want to pass a pointer, because it has to work
with dcom too.

 

Re:How to: pass custom objects to a comserver


Write your object into an IStream.
Pass the IStream.
Read your object from an IStream.

Randy Charles Morin
  KBCafe.COM - http://tips.kbcafe.com/tips/
  The Waite Group's COM/DCOM Primer Plus
    http://tips.kbcafe.com/tips/book.cgi?0672313529
  COM/DCOM Unleashed
    http://tips.kbcafe.com/tips/book.cgi?0672314924

In article <922272184.507...@dibbs3.eur.cis.philips.com>,
  "Greydanus" <b.p.greyda...@philips.com> wrote:

Quote
> Hello,

> I have some custommade objects that I want to passon to my comserver. How
> can I do this best? I don't want to pass a pointer, because it has to work
> with dcom too.

////////////////////////////////////////
// He went out of his way to be good. //
////////////////////////////////////////

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

Other Threads