[DUG] Returning IDispatch instead of OleVariant in TypeLibrary

Conor Boyd Conor.Boyd at trimble.co.nz
Fri Jun 2 10:51:33 NZST 2006


I can't see why you shouldn't just return one of your own interface
types.

It's going to be as cross language compatible as the rest of your type
library.

Cheers,

C.

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss

Yes, that's done the trick - thanks. I missed it the first time you
mentioned it cause I was so caught up in trying to just get the thing
reloading without errors.

I can now set the return value of a method to one of my dispInterfaces. 
Is this a good idea or should I just return an IDispInterface (concerned
about cross language compatibility)?

Conor Boyd wrote:
> I'm not sure if this is your issue or not, but...
>
> I'd mentioned in my original "buggy type library" response the
> following:
> *	Under Tools, Options, set the Type Library language to Pascal,
> not IDL.
> *	Under Tools, Options, set the SafeCall function mapping to All
> v-table interfaces.
>
> You may also need to look at some of the items on the Flags tab in the

> Type Library editor for the interface/method you're working with.
>
> You could look at those settings, and see if they affect what you're 
> trying to do.



More information about the Delphi mailing list