引用非托管代码找不到dll,网上找到解决方法是建立委托,看不太懂,有没有再详细点的.

解决方案 »

  1.   

    问题描述的不够清楚。
    引用非托管代码找不到dll?具体是引用了什么非托管代码?API?使用了什么dll?
      

  2.   

    不懂问题是什么意思猜测为dll位置拷贝到system32目录下试试
      

  3.   

      [DllImport("HTTPEUCPComm.dll", EntryPoint = "SendSMS")]
    //即时发送
    public static extern int SendSMS(string sn,string mn,string ct);
      

  4.   

      [DllImport("HTTPEUCPComm.dll", EntryPoint = "SendSMS")]
    public static extern int SendSMS(string sn,string mn,string ct);
    这样的引用  报错说找不到 HTTPEUCPComm.dll
      

  5.   

    首先必须要有“HTTPEUCPComm.dll”,然后把它放在程序的相同目录中就可以了。
    也可以放在“System32”目录中。
      

  6.   

    我把dll文件放在Bin文件夹里,也说找不到