Calling unmanaged dll class functions from managed dll
I am trying to create a managed dll in managed C++. I am trying to call a class method that is exported by a dll written in unmanaged way.
I am able to declare an object of the class, but when I call a method, I get following errors.
DotNet error LNK2001: unresolved external symbol __load_config_used
DotNet error LNK2019: unresolved external symbol ___CxxFrameHandler referenced in function __ehhandler$?GetProcessorCount@HTCPUIDNative@@SAHXZ
DotNet error LNK2019: unresolved external symbol __except_list referenced in function "public: static int __cdecl HTCPUIDNative::GetProcessorCount(void)" (?GetProcessorCount@HTCPUIDNative@@SAHXZ)
DotNet fatal error LNK1120: 3 unresolved externals
Any ideas ? I can share the exact code. HTCPUIDNative is an unmanaged class in managed DLL that is trying to call an unmanaged stuff.
|