iCAx开思工具箱

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 25489|回复: 4
打印 上一主题 下一主题

CAA基础求助

[复制链接]
跳转到指定楼层
楼主
发表于 2011-8-31 14:04:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
请问我这样来来获得CATIContainer 。但为什么总是说<<"error getting the spConODocs"<< 呢。以前这样做是可以的,现在怎么又不行了呢。

CATIContainer *DialogCommand::pSpecContainer(void)
{
CATFrmEditor* pEditor = CATFrmEditor::GetCurrentEditor();
  if(!pEditor)
      {
           cout <<"error getting the FRM editor"<< endl;
     return NULL;
      }
   CATDocument *pDoc = pEditor->GetDocument();
  if(!pDoc )
      {
           cout <<"error getting the CATDocument"<< endl;
    return  NULL;
   }
CATIContainerOfDocument_var  spConODocs = NULL_var;
HRESULT rc = pDoc->QueryInterface(IID_CATIContainerOfDocument,(void**)&spConODocs) ;
     if(!spConODocs)
      {
           cout <<"error getting the spConODocs"<< endl;
           return NULL;
      }
   CATIContainer* pSpecContainer = NULL;
   HRESULT hr = spConODocs->GetSpecContainer(pSpecContainer);
spConODocs->Release();
if(pSpecContainer == NULL_var)
      {
           cout <<"error getting the pSpecContainer"<< endl;
      }
  if(spConODocs == NULL_var)
       {
     cout <<"error getting the container of documents"<< endl;
       }
   return pSpecContainer;
}
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 支持支持
沙发
发表于 2011-9-2 11:25:10 | 只看该作者

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
板凳
发表于 2011-9-13 14:49:47 | 只看该作者

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
地板
发表于 2011-9-16 22:34:49 | 只看该作者

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
5
 楼主| 发表于 2012-3-24 15:31:13 | 只看该作者

马上注册登录,享用更多网站功能!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手板模型制作,在线3D打印服务

QQ|小黑屋|手机版|开思工具箱 CAD工具箱_CAM工具箱  

GMT+8, 2024-6-30 12:12 , Processed in 0.015776 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表