使用Microsoft Visual Studio2005开发ObjectARX设置

官方文档的简单翻译。

english:
Use the following settings for your project

Set the application type to DLL.
Specify the ObjectARX library and include file locations.
The easiest way to do this is to add the ObjectARX include and library directories to your MSVC++ environment settings (in the Visual Studio menu under Tools»Options»Projects and Solutions»VC++ Directories). You can also specify the locations in the Project Properties, but you'll need to include full paths to the files for every project you create.

For all configurations (debug and release), set the runtime library for linking to Multithreaded DLL (in your project’s Property Pages under Configuration Properties folder»C/C++ folder»Code Generation»Runtime Library).
For all configurations (debug and release), set the Detect 64-bit Portability Issues option to No (in your project’s Property Pages underConfiguration Properties»C/C++ folder»General»Detect 64-bit Portability Issues). This setting suppresses compiler warning 4311 for pointer assignments that are not 64-bit compatible. Some ObjectARX header files contain such assignments.
If you prefer, you can control this warning instead by using #pragma warning statements. See the Microsoft documentation for more information about #pragma warning statements.

Set the output file name (in your project’s Property Pages under Configuration Properties»Linker»General»Output File) to a name with an .arx extension. If you include a DEF file with a LIBRARY statement in your project, this name should match the LIBRARY value.
NoteLIBRARY statements are optional in DEF files.
Add the ObjectARX libraries necessary for your program (in your project’s Property Pages under Configuration Properties»Linker»Input»Additional Dependencies).
For example, the minimum code shown below requires rxapi.lib and acdb17.lib.

The project also needs a definition file. Add a new text file to the project and name it with a .def extension.

Enter the following code in the DEF file

LIBRARY "objectarx_program_name.arx"
EXPORTS
acrxEntryPoint PRIVATE
acrxGetApiVersion PRIVATE

中文:
1.设置应用程序类型为动态库:
  文件-〉新建-〉项目-〉其他语言-〉VC++-〉Win32项目
2.设置包含文件与库文件目录:
  工具-〉选项-〉项目和解决方案-〉VC++目录
3.设置运行时库为多线程调试DLL(debug和release):
  项目-〉属性-〉配置属性-〉C/C++-〉代码生成-〉运行时库
4.设置检测64位可移植性问题为否(debug和release):
  项目-〉属性-〉配置属性-〉C/C++-〉常规-〉检测64位可移植性问题
5.设置输出文件后缀名为arx:
  项目-〉属性-〉配置属性-〉链接器-〉常规-〉输出文件
6.设置链接器附加依赖库:
  项目-〉属性-〉配置属性-〉链接器-〉输入-〉附加依赖库(至少需要rxapi.lib 和 acdb17.lib)
7.增加模块定义文件(文件名必须与前面设置的输出文件名一致)
  LIBRARY "objectarx_program_name.arx"
  EXPORTS
  acrxEntryPoint PRIVATE
  acrxGetApiVersion PRIVATE

原文地址:https://www.cnblogs.com/figo/p/1112725.html