可以
项目-〉引用-〉Com(你的dll)
在你的代码里
using 就可以l

解决方案 »

  1.   

    能,和调用api函数方法一样。
    一、在命名空间(namespace)中引用
      二、引入API的dll文件
      三、声明API
      具体如下
      using System.Runtime.InteropServices; //命名空间
      引入dll
      [DllImport("User32.dll")]
      声明API
      public static extern int MessageBoxA(int h, string m, string c, int type);
      调用如下:
      MessageBoxA(0,"API Message Box","Use API",0); );//这里的两个0是显示参数
    这个东西的效果和system.windows.form.messagebox.show("use api","api message box",informationbutton);效果一样!
      

  2.   

    可以
    用regsvr32注册你的dll
    然后把它当成普通的dll添加到引用里面就可以用了