iCAx开思工具箱

标题: 获取CATITPSViewFactory接口啊 [打印本页]

作者: sungshing    时间: 2012-8-29 11:27
标题: 获取CATITPSViewFactory接口啊
卡壳了,怎么获取CATITPSViewFactory接口啊

作者: linlily0925    时间: 2012-9-6 09:52
CATITPSServicesContainers* piTPSServicesContainers=NULL;
hr=CATTPSInstantiateComponent(DfTPS_ItfTPSServicesContainer,(void**)&piTPSServicesContainers);

CATITPSSet* piTPSSet=NULL;
CATTPSSetObtentionMode mode=CreateIfMissing;
CATBoolean result=FALSE;

piTPSServicesContainers->RetrieveOrCreateCurrentTPSSet(piProductOnRoot,mode,&piTPSSet,&result);

CATITPSViewFactory* piTPSViewFactory=NULL;
piTPSSet->QueryInterface(IID_CATITPSViewFactory,(void**)&piTPSViewFactory);


就可以得到啦~~~

作者: sungshing    时间: 2012-9-9 20:35
真是热心人那,太谢谢您啦




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3