几何尺寸与公差论坛

 找回密码
 注册
查看: 707|回复: 0

【求助】【转帖】"> 请问版主dmis的接口文件能不能在delphi中用

[复制链接]
发表于 2009-4-7 23:03:56 | 显示全部楼层 |阅读模式
"> 请问版主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++ )
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-5-14 06:49 , Processed in 0.036211 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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