Actually I have 2 questions:
1. Is it normal to load a DLL that is already loaded?
EXE: ... HMODULE hm=LoadLibrary(L"DLL_1.dll"); typedef void(*func)(int); func Func = (func)GetProcAddress(hm, "Func"); LoadLibrary(L"DLL_2.dll"); ... DLL_1: ... extern "C" _declspec(dllexport) void Func(int); ... DLL_2: ... Мне нужно использовать функцию из DLL_1. Cнова вызывать LoadLibrary()? ... 2. When should a DLL be unloaded?
Can I use functions from the library after I called FreeLibrary() ?
PS: The reason for asking the question is an exception in my program. It is not born immediately, after a large number of code calls, where the described situation occurs (in длл loaded without being supported, and also the loaded длл are called). Exception in msctf.dll , write error at 0x00000005. Googling, there are similar problems - everything. they write that the exception is born when they load the library. Here is a similar question - https://social.msdn.microsoft.com/Forums/vstudio/en-US/f74eec60-c215-42b8-b3ff-4591870d5a87/msctfdll-exception?forum=vsdebug