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)?
Cheers,
Phil.
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.
Cheers,
C.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Phil Middlemiss
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?
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi
begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi