Happy new year!
I have a third party native dll.
I can use the native dll inside my c# dll at my c# console application without problem. (I only need to put the 3rd party library in the same folder, will be loaded automatically.)
However when I use my c# dll in ExcelDNA as external library, it seems the 3rd party library is not loaded.
So I decide to load it in ExcelDNA's C++ project such as somewhere in xlAutoOpen().
However, it just hang in there, does not give any error message
However, I can load it in my standalone C++ console application such as:
HINSTANCE hDLL =LoadLibrary(L"C:/bin/Debug/ThirdPartyNative.dll");
if(hDLL != NULL)
printf("Library has been loaded\n");
err = GetLastError(); printf("Couldn't load dll\n");