TextFileField例子项目升级解决方法
属性设置

修改附加包含

修改附加库目录

清空输入项目

设置配置管理器的生成

尝试生成报错

解决错误1

测试报错

解决错误2

//ObjectARX 2013升级变更
//AcDbHostApplicationServices::getMachineProductRegistryRootKey();
//AcDbHostApplicationServices::getUserProductRegistryRootKey();
#if _MSC_VER >1500
#define acrxProductKey acdbHostApplicationServices()->getMachineRegistryProductRootKey
#endif
再次测试报错

解决错误3

测试报错

解决错误4

测试成功

解决警告


解决2017版本变更问题

//ObjectARX 2017 升级变更
#if _MSC_VER > 1700
appInfo.writeToRegistry();// Write the appInfo to the registry.
#else
appInfo.writeToRegistry(false,true);// Write the appInfo to the registry.
#endif
查看生成的文件发现问题

解决问题5


重新生成

加载测试


浙公网安备 33010602011771号