Re: Structures and ArrayList

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Armin Zingler (az.nospam_at_freenet.de)
Date: 02/16/04


Date: Mon, 16 Feb 2004 10:54:54 +0100


"Sueffel" <someone@somewhere.com> schrieb
> Well, I don't know what the assemblyname will be. This is part
> of a
> plugins system that uses LateBinding because of some drawbacks of
> Interfaces. [...]

I am still not satisfied with the situation. :-)

I still don't know
> > Why not reference the assembly that you want to use?

If you really would use Latebinding only, you can not declare the variable
"As Simenz".

The main question is: Do you know in which library the type "Simenz" is
declared?
- If yes, set a reference to the library in your main app, becaues you want
to use /just/ /that/ type.
- If no, how can you know that the type exists at all?

I guess, the situation is: You want the plugins to use a certain type
("Simenz" in this case), /and/ you want your main app to use the same type.
The only clean solution is to put the type into a 3rd DLL. Your main app and
the plugins will be able to use the type:

       MainApp
        / |
       / |
      / |
(Plugins) |
   \ |
    \ |
     \ |
       3rd library (incl. Simenz)

(view with a fixed font size)

Both, the main app as well as the plugins will be using the /same/ type now.
This enables you to a) declare the variable As Simenz within the main app
and b) assign an object of that type returned by the plugin to the variable
declared in the main app.

-- 
Armin


Relevant Pages

  • Re: OODesign - OPF, design pattern
    ... I wanted to put across that an app layer is ... if you hadn't used the framework in the first place. ... the plugins to be managed or unmanaged. ...
    (borland.public.delphi.non-technical)
  • Re: [SLE] Compiling Apps
    ... smartmodem which contains a 32-bit proprietary module and get plugins ... plugins available, so you have to use the 32-bit apps if you need plugins. ... For a 32-bit machine it's quite straightforward, for the same KDE app, ... Hamradio License G3VBV, licensed Private Pilot ...
    (SuSE)
  • Help Debugging MissingMethodException Error
    ... I have two users of my software getting a MissingMethodException that seems ... disables the plugins, ... app setup initialization. ... before memory becomes fragmented (or before NETCF allocates additional ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: web updates that work with binary patches?
    ... >the main motivation for plugins. ... >and are more complicated to enable in your app. ... >could be used even with plugins to make the plugin updates smaller. ... kbmMW server checks my server for ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: sharing data between two dlls
    ... If you write extern in front of it, you tell the compiler that the ... If you declare a variable extern in one plugin, ... The load order of the plugins ...
    (comp.os.linux.development.apps)