Satya Ramesh
April 18th, 1999, 03:03 AM
Hi all
how to pass structures to server.
how to pass array of structures.
My COM server is a dual interface support and developed using ATL.
Thanks
-satya
SKB
April 20th, 1999, 05:38 AM
It is possible to pass structures and arrays of structures, the problem is you will need to have a Proxy-stub dll that will be used for marshalling the extra data.
If you declare the structure in the IDL and then use it has a type in the call.
If you wish to pass arrays of structures then you will need to do the following.
// This function will return an array of items
MyComCall([out] int *NumberOfItems, [out, size_is(*NumberOfItems)] MYSTRUCTURE_t **pStructure)
The above is from memory, I have written a couple of ATL apps that pass back structure information, if you have any problems I will try and look the code out.
muscicapa
May 16th, 1999, 11:46 PM
Will this work with out of process servers too ?
please tell me about the IDL bit of this process,
sample code would bew useful.