请高手指点,俺不会用啊!

解决方案 »

  1.   

    我不是高手,不过可以这样调用吧:
    在项目的“引用”中添加该dll文件的引用,然后在页面using+dll中的命名空间,代码中就能使用里面的方法了
      

  2.   

    这要看你的.Dll文件而定:
    如果是 .NET 程序集或是 Com,ActiveX之类的,直接添加引用就可以了
    如果是普通Dll或API,这要用DllImportAttribute在运行时动态引入
      

  3.   

    先在工程中引用这个dll
    然后在每个需要的类中写上using 这个dll的命名空间
    就可以了
      

  4.   

    其他语言写的dll:
    class xxxx
    {
      [DllImport("xxx.dll")]
      public static external int xxxxxx();  public int RevokeDllMethod()
      {
        return xxxxxx();
      }
    }
      

  5.   

    How to create a DLL library in C and then use it with C#
    14 Mar 2005 
    An easy-to-use example of how to create a DLL library in C and then use it with C#. http://www.codeproject.com/csharp/UseCDLLlibinCS.asp