.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with loading .NET Arx dll with C++ library in x64 AutoCAD

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dynamicscope
741 Views, 2 Replies

Problem with loading .NET Arx dll with C++ library in x64 AutoCAD

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.

2 REPLIES 2
Message 2 of 3
owenwengerd
in reply to: dynamicscope

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.

--
Owen Wengerd
ManuSoft
Message 3 of 3
dynamicscope
in reply to: owenwengerd

Thank you. I built separate x86 and x64 DLLs. Then everything has solved. 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost