How to load C++ dlls of the same name in C# project

103 Views Asked by At

I have two C++ WinApi(only x64 arch) dlls of the same names, which contain API of some project, for example C:\first\MyDll.dll and C:\second\MyDll.dll. I can't rename it in my case. So they can't be loaded in Reference Manager beacause they have the same names.

DLLImport can load only method, but i need to load some COM intefaces, guids, etc

What ideas you have?

Thanks in advance everyone

0

There are 0 best solutions below