Re: Conceptional DLL Question
"Jan Erik B." <Jan Erik B.@discussions.microsoft.com> wrote in message
news:22E34569-A984-4DE7-B0EB-0A813C53F209@microsoft.com...
I have to build a DLL(mapper.dll) which loads another DLL(CAN.dll)
OK.
Only one process can load/instanciate the Can.dll.
I think that there may be a disconnect here. Instantiate usually means to
create an instance of a class. Instances of classes are usually created
either on the stack of, or in the data segment of, an application.
Further. DLLs by and large contain code segments which are mapped into
applications, possibly at different base addresses.
The functions (member functions, free functions, what yave you) in a DLL
loaded by one application are not availble to be called by another
application because applications don't share address space.
I want that my mapper.dll can be loaded from multiple applications,
and map the functions of can.dll.
Then you'd likely need the single instance of your mapper application to
make the whatever functionality is available in CAN.dll via some IPC
mechanism.
Regards,
Will