I am trying to load .NET Arx (Object Arx 2010 targeting Any CPU) which refereces C++ (Win32) library in x64 AutoCAD 2012.
When I do "netload" the dll, it loads the assembly until the code hits the line of C++ library object.
It seems x64 AutoCAD cannot load C++ (Win32) library.
Am I right? If so, how could I solve this issue?
Converting C++ (Win32) library to x64 library? (I do not think this is possible.)
If anyone has encountered such problem and solved it, please give me a hand. š
Thank you.
Solved! Go to Solution.
Solved by owenwengerd. Go to Solution.
Unlike managed code, native code can only load in one target architecture. You'll need separate Win32 and x64 native DLLs. You can build separate x86 and x64 managed DLLs that use them, or get fancy and manage the native linking explicitly at runtime (aka "late binding") from a single AnyCPU managed DLL. I don't recommend late binding except in very simple cases where the interface between your code and the native code is truly architecture-neutral.