Hello. Such a question: there is an ехе , there is a dll №1 and there is a dll №2 . In the ехе load both libraries (using LoadLibrary , Main функции exported via extern "C" _declspec(dllexport) ), while in the Main функции first library are also loaded library number 2. That is, dll №2 loaded twice, I understand correctly?
My problem is that dll №1 loaded dll №2 , and it seems like I got the address of the exported function from dll №2 ( GetProcAddress did not return 0). But the function can not be called - the crash of the program. (With exe -shnika function starts normally)