[DUG] Returning IDispatch instead of OleVariant in TypeLibrary

Phil Middlemiss phil at tumonz.co.nz
Thu Jun 1 15:36:46 NZST 2006


I notice in the .pas files for M$ Automation objects (Server tab) such 
as Word etc. that the interfaces return IDispatch.

I can't seem to get my type library to return anything but OleVariant by 
defining a return parameter of VARIANT *. If I try and set it to the 
actual dispinterface that *is* returned, I get an error message saying 
it must return a type of pointer (even when I stick the * on the end of 
it). Same if I try and set it to IDispatch.

Is there some trick here?

Cheers,
Phil.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060601/0e939cca/phil.vcf


More information about the Delphi mailing list