TextFileField例子项目升级解决方法

属性设置

修改附加包含

image

修改附加库目录

image

清空输入项目

image

设置配置管理器的生成

image

尝试生成报错

image

解决错误1

image

测试报错

image

解决错误2

image

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

再次测试报错

image

解决错误3

image

测试报错

image

解决错误4

image

测试成功

image

解决警告

image
image

解决2017版本变更问题

image

	//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

查看生成的文件发现问题

image

解决问题5

image
image

重新生成

image

加载测试

image

posted @ 2022-06-10 15:22  edata  阅读(143)  评论(0编辑  收藏  举报