Discussion:
Interfaces, DispInterfaces & Parameter Types
(too old to reply)
a***@aol.com
2012-01-09 14:05:14 UTC
Permalink
Thanks for the previous replies on type libraries.

I am using only a few of the interfaces in a dll, and the _TLB.pas
file is very large.

a) Do I need to declare _all_ the interfaces in a dll, or can I
declare only those I use (& of course directly related others).

b) I find a number of parameter types declared in dipinterfaces are
not acceptable in my current Delphi 3 (LargeInt, TGUID etc). Must I
have dispinterfaces declared in the _TLB.pas, or can I delete theit
declarations as (AFAIK neither as interfaces nor dispinterfaces) I'm
not using them. Or must I somehow declare an acceptable parametr of
the same size to foil the compiler.

Thanks for any replies.

Alan Lloyd
Chris Cheney
2012-01-10 09:52:43 UTC
Permalink
Post by a***@aol.com
Thanks for the previous replies on type libraries.
I am using only a few of the interfaces in a dll, and the _TLB.pas file
is very large.
a) Do I need to declare _all_ the interfaces in a dll, or can I declare
only those I use (& of course directly related others).
b) I find a number of parameter types declared in dipinterfaces are not
acceptable in my current Delphi 3 (LargeInt, TGUID etc). Must I have
dispinterfaces declared in the _TLB.pas, or can I delete theit
declarations as (AFAIK neither as interfaces nor dispinterfaces) I'm not
using them. Or must I somehow declare an acceptable parametr of the same
size to foil the compiler.
a) those that you use.

b) See (a) (i.e. if you are not using the dispinterfaces, you won't need
their declarations and therefore their parameters).

It's not clear to me whether you are only using a few (custom)
interfaces, a few dispinterfaces, neither, ...

FWIW The D3 Object Pascal Language Guide does have TGUID (p13-4)- but
it's a long time since I used D3!

Chris

Loading...