I connect dll to the project in MSVS via LoadLibrary, i.e. at issue Question: What do I need to specify in the project properties? Do I need to specify the .lib file of the dynamic library in the linker? What else? Do I need to specify any other directories include? And again: my LoadLibrary does not want to accept a string like "Example.dll", writes about _wchar. How to fix?

In general, the question is, if you need to specify something about the dll in the project's properties, then what should I do if I want not to restart the application, but pause it, update the dll and reload only the functionality supplied by this dll, which is done with GetProcessAddress.

    1 answer 1

    You can not specify anything in the project properties for correct operation via LoadLibrary() + GetProcAddress() . It may be convenient to add headers describing the functions and data structures from the DLL, but not necessarily.

    The problem with "_wchar" is solved by explicitly using LoadLibraryA() .