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

Can ARX compile with /cli or call a method from managed C++ dll compiled with /cli

1 REPLY 1
SOLVED
Reply
Message 1 of 2
hbxiaogui
367 Views, 1 Reply

Can ARX compile with /cli or call a method from managed C++ dll compiled with /cli

I have a .net dll : A.dll and a arx:  B.arx

I want call a method from A.dll in B.arx.

So I make a managed C++ dll C.dll to wrap the method, and link the head.h with c.lib to B.arx.

All above there projects compiled successfully. But acad fails to load the B.arx after link C.dll. (B.arx can run well before link C.dll)

 

Is this way possible? Or I must use arx to rewrite the method from .net dll?

1 REPLY 1
Message 2 of 2
hbxiaogui
in reply to: hbxiaogui

I add a keyword "__stdcall" to the export method in managed dll, finally it works.

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

Post to forums  

Autodesk Design & Make Report

”Boost