此处报错对象不支持 additem属性或方法,报错显示文件中的classID错误,修改ID值可以正确生成,但是查阅了几个文件都无法满足,应该是根据实际的更新而更新的ID。
1 | <OBJECT CLASS="itemText" ID="DialogList" ACCESSKEY="d" CLASSID="CLSID:fc1ae18b-0282-42f1-90ae-bbd8f0181013"> |
关于解决办法及ClassID的解释参照:
Failed in Creating ArxWizMFCSupport class
Author: Broccoli
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Related Articles
2023-08-04
Configuring VS2019 + ObjectARX 2016
Here it reports an error Object does not support additem property or method. The error indicates looking for classID in the file. Modifying the ID value can generate correctly, but consulting several files did not satisfy the requirement. It should be an ID updated according to the actual update. 1<OBJECT CLASS="itemText" ID="DialogList" ACCESSKEY="d" CLASSID="CLSID:fc1ae18b-0282-42f1-90ae-bbd8f0181013"> Regarding the solution and explanation of ...

2023-08-19
ObjectARX 2021 VS2019 Build Error /RTCc rejects conformant code
error C2338: /RTCc rejects conformant code error solution Using VS2019/VS2022 to build the project reports an errorSeverity Code Description Project File Line Suppression State Error C1189 #error: /RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning. ArxProject2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC...

2023-08-19
Objectarx 2021使用vs2019生成报错 /RTCc rejects conformant code
error C2338: /RTCc rejects conformant code错误解决 使用VS2019/VS2022生成项目报错严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1189 #error: /RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Either remove this compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning. ArxProject2 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\yvals_core.h 1231 修改项目->c/c++->最小类型检查,改为否,清理一下项目即可生成项目...

2023-11-17
Using libcurl to Request WebApi in ObjectARX
Because CAD development requires requesting data from the server, request data through WebAPI set up on the server before, so libcurl was installed to use data in ObjectARX.Open VS2012 x64 Native Tools Command Prompt Supplemental address: I will place the relevant reference configuration images here. The application inside CAD is consistent with the routine. All usage is consistent with the current case, but an error occurred here, which I record here. In the code below, when I ran the progr...

2023-11-17
Objectarx 使用libcurl请求WebApi
因为开发cad需要请求服务器的数据,再次之前我在服务器搭设了webapi用户传递数据,所以安装了libcurl在objectarx中使用数据。Open VS2012 x64 Native Tools Command Prompt补充地址: 我在此将相关的引用配置图片,cad里面的应用和常规的一致。 所有的使用与现在的案例一致,但是我这里发生了一个错误,我在此记录一下,在下面这段代码当中,我运行程序,cad报错内存泄漏,定位问题之后发现问题出错在这句 1CURLcode res = curl_easy_perform(curl); 我查看了很多文章都无法解决,后来发现其实是此处的数据传递错误,我的指针传递错误导致的问题,这里是问题代码片段 12345678910111213141516inline BOOL webApi::DownloadFile(const char* Filepath){ // ... curl_easy_setopt(curl, CURLOPT_URL, combinePath.c_str()); curl_easy_setopt...
2023-11-22
ObjectARX and Libcurl File Download Issues
Download failure causing CAD crash, error ‘Error handler re-entered. Exiting now’. The reason is that I inherited libcurl-related functions into a class and performed relevant WebAPI interactions within the class. However, because I made a request at the very beginning, I failed to initialize curl, leading to data transfer errors. It just needs to be initialized at the beginning of the function. 123456789101112131415curl = curl_easy_init();/*curl_global_init(CURL_GLOBAL_DEFAULT);*/if (curl)...
Announcement
欢迎访问!右上角可切换中英文。感谢您的阅读!



