Click to See Complete Forum and Search --> : HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
Satya Ramesh
April 8th, 1999, 01:48 AM
Hi,
I created a component server using ATL
My client is using MFC .
How to pass structures/linked lists as parameters to the component.
I am using CList .
How can pass the data to component.
Thanks
-Satya
somasrini
April 9th, 1999, 09:33 AM
You can use olevariant data type. convert ur structure into olevariant type and pass the pointer and convert it back.
Santhosh Cheeran
April 9th, 1999, 10:03 AM
Hello,
There is a problem with the process boundary. So you will have to convert the stuff into simple data format like byte pointer etc and pass it. For this u can use COleStreamfile. serialize the object pointer u want to pass into a CArchive object. Using this CArchive object u can create an olestreamfile which is an Iunknown pointer by type.
Dmitriy
April 9th, 1999, 10:04 AM
This site has good samples what are You looking for
April 12th, 1999, 12:01 PM
I would use OLESafeArrays. I think they can be marshalled by the default OLE automation marshaller too. Specifically, I would use OLESafeArrays of VARIANTs.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.