|
-
April 8th, 1999, 01:48 AM
#1
HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
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
-
April 9th, 1999, 09:33 AM
#2
Re: HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
You can use olevariant data type. convert ur structure into olevariant type and pass the pointer and convert it back.
-
April 9th, 1999, 10:03 AM
#3
Re: HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
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.
-
April 9th, 1999, 10:04 AM
#4
Re: HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
This site has good samples what are You looking for
-
April 12th, 1999, 12:01 PM
#5
Re: HOW TO PASS STRUCTURES/LINKED LISTS/ ARRAY OF STRUCTURS TO A COM SERVER
I would use OLESafeArrays. I think they can be marshalled by the default OLE automation marshaller too. Specifically, I would use OLESafeArrays of VARIANTs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|