windows - C++ access DLL load -


I have a DLL plugin to connect two separate external applications. The long story short calls to my plugin via application A highlighted function, so my plugin calls the application b (also by exFold functions) and returns B to A.

In AA there is a config file in which I have to specify a path for my DLL plugin then it loads the DLL and calls it. Unfortunately there is no qualification to load more than one DLL in one. Is it possible to write a custom code inside the plug-in, when some additional DLLs will be loaded? In other words, I always want to load the Application B DLL when my plugins are loaded with any process.

Other solutions should be added to the list of folders in the directory of B, in which the main process would be searching for DLL, but I do not even know how to do it.

For now I have added the App B directory in the system path env variable but it is an unacceptable solution.

Thank you

I think you need to modify it. To do this, use SetDllDirectory or AddDllDirectory

Alternatively, when you call LoadLibrary By crossing the full path, you can just fulfill your needs. It will work well that your dependencies in the DLL you load are not included in your application directory structure.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -