Interfaces, DispInterfaces & Parameter Types



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

.



Relevant Pages

  • Re: protocols, inheritance and polymorphism
    ... have do declare interfaces everywhere to make them work this way). ... Going back to my earlier Python example: ... Note that because Java is statically typed, you have to declare all the ... I could have written getName ...
    (comp.lang.python)
  • Re: CLOS Properties Question
    ... In interfaces, you can declare methods, but you ... This mess was the result of the fact that interfaces ... > is even an OOPSLA or ECOOP paper published before the advent of Java ... > Back to the question what this all has to do with multiple inheritance: ...
    (comp.lang.lisp)
  • Re: implicit types in C# 3.0, what is the usefulness of them?
    ... > I can see where you are going here, but interfaces aren't always the answer, ... > and within method bodies I don't care that much. ... get into to declare variables with only the information which is really ... you'd either need to sacrifice some of the intent or have longer names. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Wrapping a COM DLL
    ... > static public extern uint WABOpen(ref IntPtr lppAdrBook, ref IntPtr> lppWABObject, ref IntPtr lpWABParam, uint Reserved2); ... >> Sam, ... >> Which function are you trying to declare in wab32.dll? ... >>> Do i have to declare the interfaces i need as c# interfaces? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MVPs: static methods in interfaces.
    ... > I have no intention of using interfaces for declaring constructors for my ... >>> static methods, even not for construction... ... and static methods cannot be polymorphic. ... >> declare an interface for a class factory and implement several factories ...
    (microsoft.public.dotnet.languages.csharp)