Re: keep interface private to dll?



"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
news:O3T4$tjFGHA.3056@xxxxxxxxxxxxxxxxxxxxxxx
> Jeeez, one David Mark isn't enough?

Sorry, the last thing I want to do is emulate that pinhead. :-)

Dushan,

The only way I know of to do what you want to do is define the interface in
a typelib and reference that typelib in your dll. That way nothing will be
able to use your interface but you'll be able to use it on public classes.
The interfaces will effectively be public but because no-one else has your
typelib they won't be able to see or use them.

Michael


.



Relevant Pages

  • Re: keep interface private to dll?
    ... one David Mark isn't enough? ... > The only way I know of to do what you want to do is define the interface ... > in a typelib and reference that typelib in your dll. ...
    (microsoft.public.vb.general.discussion)
  • Re: Parametername ActiveX Control herausfinden
    ... public static extern ITypeLib LoadTypeLib([In, ... Typelib zu holen. ... genannte ITypeLib Interface) einige Interfaces, Enums, ... ...
    (microsoft.public.de.german.entwickler.dotnet.framework)
  • Re: IDispatch Interface
    ... GetTypeInfoCount and GetTypeInfo in order to retrieve a 'typelib' from ... These are only exposed through an IDispatch ... expose an IDispatch interface (either separately or as part of a Dual ...
    (microsoft.public.vb.general.discussion)
  • Re: Interna einer Automations-App
    ... >> aus der TypeLib bzw Standardmarshaller oder Benutzerdefiniertermarshaller ... >> Beispiel oben ITest ist bekannt und es können somit die Informationen ... > kann COM das erkennen, wenn nirgends CLSIDs, IIDs oder gar Klarnamen zu ... könnte ich mir vorstellen das er das ITypeLib interface zum Client ...
    (microsoft.public.de.vc)
  • Re: hide php code
    ... > to provide the users with some public classes which they may use use ... > I want the code to be accessable via an interface ... > How do I make php code which are hidden but are free to use by my ... and to "see" the class bodies, ...
    (comp.lang.php)