怎么在C#中使用外部程序提供的接口

weixin_38065494 2017-03-23 03:01:21
我想使用C#控制电脑上的一个仿真程序plant,plant提供了一个COM接口IRemoteConTrol,我不知怎么在C#使用这个接扣里面的方法
,下面是我写的程序,出错了,说我没引入命名空间,关键是我不知这个接扣在那个命名空间啊,using不会写?怎么改才行呢?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour ,IRemoteControl{

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
接口如下:
使用名字是:Tecnomatix.PlantSimulation.RemoteControl.13.0
interface IRemoteControl:IDispatch{
HERESULT NewModel();
HERESULT LoadModel();
}
...全文
13 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧