J.Reginald Ebenezer asked (twice):

>     Can any one tell me how to pass a user defined datatype from a
> function in a COM object? Source code will be a lot helpful.
>     Thanks in advance.

The thanks may be a little premature 8-)

This area is one of daunting complexity and the best I can do is tell you
to get a copy of "Inside OLE 2" or a similar reference work published by
Microsft Press and read up about how this area. Or alternatively have a
good read of the MSDN documentation and sample code.

What you want to do is achieved via "marshalling" and the IMarshal
interface, and added in with the additional complexity of proxy objects to
allow communication across process boundaries, the RPC layer, and other
stuff and this quickly becomes an area that many fear to tread near. All
this is called "custom marshalling" and is one of those yawn inducing
multi-chapter bit in the OLE2 documentation that I have never managed to
study a seriously as it deserves.

Also have a look at http://www.techvanguards.com/com/tutorials/tips.htm
for a couple of introduction answers to common questions about
marshalling.

Good luck.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to