iCAx开思网
标题:
关于二次开发取文件自定义属性的问题!
[打印本页]
作者:
zww2001001
时间:
2008-3-18 16:41
标题:
关于二次开发取文件自定义属性的问题!
求助!各位高手们!放在CAX无人回答,希望这里能有人解决这个问题.谢谢!
我用IGetCustomInfoNames去取零件图的所有自定义属性的名称,
API是status = ModelDoc->IGetCustomInfoNames( retval )
Output: (BSTR*) retval Array of the custom property names
Return: (HRESULT) status S_OK if successful
而我的程序:
......
swApp->IOpenDoc(FilePath,1,&retval);
BSTR * bstrCustomInfoName;
LONG NumParams =0;
retval->GetCustomInfoCount(&NumParams);//NumParams得到的是4
bstrCustomInfoName = new BSTR[NumParams];
retval->IGetCustomInfoNames(bstrCustomInfoName);
........
结果只有bstrCustomInfoName[0] 是取到了正确的值,剩下的就报错.为什么会取不到剩下的呢???????
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3