Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to pass user-define data types or classes across two process

Status
Not open for further replies.

arunag

Programmer
Oct 3, 2001
4
DE
using COM how can a copy of class object be passed from one process addresss to another process using COM??

-Aruna.
 
why do u want to pass the class object, there can be different solution for your requirements.
you can pass the UDT (user defined data type) ie. structure from one COM to another...u just need to define that structure in .idl file with a guid. and use it anywere in the function.



Rahul Gade
 
Hello arunag.

I'm not sure but if your classes are serializables it will be easy to serialize - send - rebuild one object.

Regards.

Polu. Nacho Vargas.
Consultant.
D.M.R. Consulting (a Fujitsu Company)
 
Hi arunag.

You can do it,but it's not recommended that you pass class object directly between different process,especially in network, because it's very slow.

Just as Polu says, you can disconstruct the class object into a string - send it - rebuild object from string.

Best Regards.

Mac Wang.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top