Add Reference
然后选择你这个dll
如果系统提示出错,那就说明你这个不是COM的dll
不能通过添加引用来加到你的程序中去

解决方案 »

  1.   

    我不知是不是com的dll,那我要用dll里的函数怎么办啊?
      

  2.   

    用COM+的DLL才可調用哦,
    至于用DllImport可不可以,關注.請大俠指一條明路.
      

  3.   

    如果你以前调用Win32 API的话,应该知道如何使用DllImport,如果没有的话,可以参考如下:
    using System.Runtime.InteropServices;[DllImport("user32.dll")] 
    public static extern int MessageBeep(uint n); 
      

  4.   

    public static extern int MessageBeep(uint n); 请问这是做什么用的
      

  5.   

    To public static extern int MessageBeep(uint n); 请问这是做什么用的这是调用系统user32.dll的一个函数,来发出声响。
      

  6.   

    [DllImport("xxx.dll")] 运行时提示出错,无法加载啊
      

  7.   

    参考.NET SDKms-help://MS.NETFrameworkSDK.CHS/cpguidenf/html/cpconinteroperatingwithunmanagedcode.htm