Dynamic linking with symbols



Hi,


I've got a special problem:

I have an executable which dllexports a lot of stuff. And a dll which dllimports it (yes, _really_ this way around).

The idea is that the dll is a plugin for my exe and thus can use all of the "symbols" inside my executable.

Now the problem is that in this case the dll has to link against a specific executable which in turn makes sure I can't use the same dll in two different executables.

Now I could put all the exported code from my executables into a dll and let my plugin dll and both of my executables link against this dll.

This way I could use the plugin dll in both executables.

I'd however like to avoid bringing yet another dll into the game and thus am looking for a unix like solution. On Linux for instance I can simply export the symbols of my executable by name and the dynamic loader will link the shared lib against the executable (it will happily link against any executable as long as the symbols are there) at runtime.


Is there anything like this available on Windows?


kind regards Philip .



Relevant Pages

  • Re: Plugins in C#
    ... Point taken though, I'll just stay with the extra DLL for now, it works ... make each plugin reference the main application project, ... since you can just copy the DLL with the interfaces in ... If it is in the same directory as the EXE, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Plugin Architecture Question - Best Practice For Forms Update
    ... DLL's used by an EXE don't run on a separate thread. ... class are held in a DLL that's used by your EXE. ... In cases where you use the more reliable timers you must ... > I have an application that follows a simple plugin architecture. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Cannot activate sbcl
    ... but I think what happens is that Windows sees that your executable has a DATA section that might overlap a DLL's address space then it would reallocate that DLL to different address space. ... VirtualAlloc dynamically in your code is that your program and all its ... What can be done here is to have many tiny executables with different BSS sections in them, which then load a bigger executable in the form of a DLL. ...
    (comp.lang.lisp)
  • Tracking down the process that owns a window
    ... My company makes a DLL that acts as a plugin to another product (an EXE). ... While interacting with that product, a message box pops up with the name of ...
    (microsoft.public.vc.mfc)
  • Re: Why do we need executables in certain formats ?
    ... > Can anybody explain me why do we need executables in certain formats? ... Modern virtual memory processors can locate to ... ..DLL files changed out from under them, ...
    (comp.lang.asm.x86)

Loading