Re: keep interface private to dll?



that's an exe.... in a dll, it'd work different. if i have a class in a dll
instanced as public, then an app using the dll would see it. the classes in
the dll would see it also, obvviously. however, if it's private, then it'd
be hidden to the app, but still visible to all classes in the dll.

the problem lies in an interface. you can't seem to have an interface that's
private. well.. you can, but no public class can implement it.

so if i want to have a class implement an interface available to outside
apps AND one available ONLY to classes in the dll, i can't do it.

"Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uMUY3YiFGHA.1028@xxxxxxxxxxxxxxxxxxxxxxx
> Maybe I'm missing something here. I have a Standard EXE with 2 Private
> classes in it here. One is an abstract class (and so doubles as an
> 'Interface'), and the other 'Implements' it. This works fine and both are
> Private
>
> Tony Proctor
>
> "Dushan Bilbija" <dbilbija@xxxxxxx> wrote in message
> news:#wZE57MFGHA.216@xxxxxxxxxxxxxxxxxxxxxxx
>> hello,
>>
>> rackin by brain, but can't find a way to do this. i'd like to implement
>> an
>> interface, which i can use to perform a handful of common functions
>> across
>> related objects.... BUT.... i want this interface to be private to the
> dll.
>>
>> any way to do this? tried, friend functions, underscores, private
>> instancing.... nothing
>>
>> any help would be greatly appreciated.
>>
>> dushan bilbija
>>
>>
>
>


.



Relevant Pages

  • Re: COM Question
    ... interface (or base class - it doesn't have to specifically be an ... Each new object will reference this same DLL to get the ... Your "consumer" app also references the original base that holds the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: COM Question
    ... Use Assembly.LoadFrom(path) to load the assembly, ... the interface (or base class - it doesn't have to specifically be an ... Each new object will reference this same DLL to get the ... Your "consumer" app also references the original base that holds the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: COM Question
    ... the interface (or base class - it doesn't have to specifically be an ... Each new object will reference this same DLL to get the ... Your "consumer" app also references the original base that holds the ... 1-Created VCR Control Library DLL to define interface ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Difference Between Interface and Abstract Class
    ... I have a dll with, say, 10 different classes, each one does something ... (The app called a dll which read a config file which told the dll ... I declared an interface and the interface was the "face" that all ... Regardless of what actual class instance ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Possible to open a file in a DLL, return file number to callin
    ... What about by using a global handle in the app, ... by reference to the dll and in turn does not need to be passed ... Private hFile As Long ...
    (microsoft.public.vb.general.discussion)

Loading