查看单个帖子
旧 2009-04-07, 11:03 PM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 【求助】【转帖】"> 请问版主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++ )
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)