after a great deal of trouble, finally successfully run the first Arx program, during a lot of debugging errors encountered. Need to download Objectarx sdk and Visual Studio 2008 (nearly 4 g) to download the ObjectARX2012 SDK on the Autodesk website, my AutoCAD is version 2012, The OBJECTARX program is backwards compatible (the ARX program written in ObjectARX2010 can be run in AutcCAD2010 and later versions, but not before the AutoCAD2010 version),objectarx Version 2012 is divided into two packages to download: After the http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=785550Visual Studio 2008 installation is complete, Need to download Visual Studio 2008 hit SP1 patch (about 898M) and then execute the SPInstaller.exe in the installation package, you must hit the SP1 patch, otherwise you will not be able to use Visual Studio 2008SP1 patch Download underground:/http www.microsoft.com/zh-cn/download/details.aspx?id=13276 opening Visual Studio 2008 new Objectarx Engineering setting project properties, Add-on dependencies, input, linker Fill in the following ObjectARX2012 library file rxapi.lib acdb18.lib acge18.lib acad.lib Tools, Options->vc++ Directory- > Include C:\ObjectARX 2012\inc-win32 Tools, Options->vc++ directory in the included file, add C:\ObjectARX 2012\lib-win32 to the library file Select the new command in the Objectarx addin command list, enter parameters open acrxEntryPoint.cpp, write Objectarx program compile the link to the ARX program In AutoCAD2012, the Add/unload application or the input appload (AP) command loads the ARX program. Input Firstarx Call Arx Program
Visual Studio + ObjectARX2012 environment configuration