iCAx开思工具箱

标题: CAA中怎么样得到给定文件中的点的信息? [打印本页]

作者: cupcake    时间: 2004-12-11 15:11
标题: CAA中怎么样得到给定文件中的点的信息?
各位高手:我现在能读取到一个part文件中的点的数目,我看过以前关于这方面的例子,但那个例子是批处理的,现在我要交互式的,我把批处理的程序改了一下,但是有错,程序和错误如下,请各位指教:
  ……
  CATIContainer* piContainer = NULL ;
  hr = piContainerOfDocument->GetSpecContainer(piContainer) ;
  piContainerOfDocument->Release() ;
  piContainerOfDocument = NULL ;
  if (FAILED(hr))  
  {  
    exit(1);
  }  
  
  SEQUENCE(CATBaseUnknown_ptr) ListObj;  
  long NbObj = piContainer->ListMembersHere("CATPoint", ListObj);  
  if (NbObj==0)  
  {  
    exit(2);
  }  
  for (int i=0; i < NbObj; i++)  
  {  
    CATPoint* pCATPoint = NULL;  
    if (ListObj && SUCCEEDED(ListObj->QueryInterface(IID_CATPoint, (void**)&pCATPoint)))  
    {  
      pCATPoint->Release();  
      pCATPoint = NULL;  
      ListObj->Release();  
      ListObj = NULL;  
    }  
  }  
  
}
错误如下:
  
## start step: link2nd   at 12/11/2004-15:09:42
# make: fr2\m2.m intel_a\code\bin\m2.dll
btlBox.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct _GUID  IID_CATPoint" (__imp_?IID_CATPoint@@3U_GUID@@A)
F:\CAA\followed\followed\.\intel_a\code\bin\m2.dll : fatal error LNK1120: 1 unresolved externals
# make-ERROR: intel_a\code\bin\m2.dll
## end   step: link2nd   at 12/11/2004-15:09:42
  
== Command done, return code = 0
我看到以前的帖子说要把Imakefile.mk改成如下:
BUILT_OBJECT_TYPE=LOAD MODULE  
LINK_WITH = CATObjectModelerBase \  
                  CATGeometricObjects \
                 JS0CORBA  
改了后编译错误如下:
  
## start step: link   at 12/11/2004-15:13:06
# make: fr2\m2.m intel_a\code\bin\m2.exe
   Creating library F:\CAA\followed\followed\.\intel_a\code\bin\m2.lib and object F:\CAA\followed\followed\.\intel_a\code\bin\m2.exp
LINK : fatal error LNK1561: entry point must be defined
# make-ERROR: intel_a\code\bin\m2.exe
## end   step: link   at 12/11/2004-15:13:06
请指教,谢谢了。




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