ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 4
loic.jourdan
366 Views, 3 Replies

C++/CLI

Hello,
Is it possible to enable C++/CLI (new vc2005 syntax) in objectarx for postrio (beta2/3)?
Thank you
----
20-20 CAD / 20-20 Technologies
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: loic.jourdan

You can use the ObjectARX Wizard to create a project using managed C++.


wrote in message news:5085354@discussion.autodesk.com...
Hello,
Is it possible to enable C++/CLI (new vc2005 syntax) in objectarx for
postrio (beta2/3)?
Thank you
Message 3 of 4
loic.jourdan
in reply to: loic.jourdan

it doesn't allow me to use new syntax. The default setting for a project created by oarx wizard is /clr:oldSyntax. if I switch this setting to /clr, I have error messages about compiler settings conflict...
----
20-20 CAD / 20-20 Technologies
Message 4 of 4
loic.jourdan
in reply to: loic.jourdan

I found a solution but, because I'm novice in C++/CLI, I'd like to be sure it's safe.
In oarx wizard, I didn't check ".NET mixed managed code support", in project properties, I enabled CLR support (/clr, not /clr:oldsyntax) and I disabled any entry point support (to prevent msil code called from Dllmain: http://www.codeguru.com/cpp/w-p/dll/mixeddlls/article.php/c3643__1)
finally, I added references to acmgd and acdbmgd assemblies.
It seems to work but I'm not sure it's totally safe.
can anyone confirm it's ok?
----
20-20 CAD / 20-20 Technologies

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

Post to forums  

Autodesk Design & Make Report

”Boost