几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   PC-DMIS (http://www.dimcax.com/hust/forumdisplay.php?f=52)
-   -   【求助】【转帖】"> 请问版主dmis的接口文件能不能在delphi中用 (http://www.dimcax.com/hust/showthread.php?t=4121)

huangyhg 2009-04-07 11:03 PM

【求助】【转帖】"> 请问版主dmis的接口文件能不能在delphi中用
 
"> 请问版主dmis的接口文件能不能在delphi中用
请问版主dmis的接口文件能不能在delphi中用
请问版主dmis的接口文件能不能在delphi中用
因為我們這邊都沒有用delphi,故沒法幫你測試,故建議你自己試試看能不能像vb一樣引用pcdmis tlb文件,測試出后,請將結果發貼告知!謝謝!
我只会用vc:
{
iapplicationptr app = null;
ipartprogramptr partgram = null;
icommandsptr cmds = null;
icommandwrapperptr cmd = null;
hresult hr = app.createinstance(__uuidof(application));

if (failed(hr))
{
afxmessagebox("create the pcdmis_application failed!");
return;
}

partgram = app->activepartprogram;
cmds = partgram->getcommands();

cstring strid;
int nfeature;
int ntype;
cstring strcmd;
icommandwrapperptr prt;
for( long index=0; index< cmds->count; index++ )


所有的时间均为北京时间。 现在的时间是 11:33 PM.