运行程序时出错:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Form.dll.
Additional information:zhao bu dao zhi ding de mo kuai.(Exception from HRESULT:0x8007007E)

解决方案 »

  1.   

    System.IO.FileNotFoundException
    文件无法找到看看自己想要打开的文件是否存在  
      

  2.   

    先判断文件的路径是否正确
    if (!System.IO.File.Exists(filename)) { 
      //not found
    }
      

  3.   

    wo de shu ru fa bu hao yong le ....
    Can I use English?
    It says that one form can't be found,but I just run that form.
      

  4.   

    I just call one .dll in the form.sorry I don't have code now,cause this is not my computer.this is public.....
      

  5.   

    FileNotFoundException
    找不到文件
    自己单步跟踪下就知道了啊
      

  6.   

    this error occurs once I run the form.so I really don't think tarck can do anthing useful.....
      

  7.   

    我就是用VC++生成了一个.dll文件,然后要在form里面调用一下,但是一运行fomr就出现这个错误,不知道是为什么,那个dll编译什么的都通过了啊
      

  8.   

    那个dll里面就是自己定义了两个函数
      

  9.   

    如果要是dll里面调用的模块找不到,那不是dll都编译不能通过么?
      

  10.   


    如果你DLL里的模块内引用了什么文件,编译当然能通过了,运行的时候可能找不到该文件就报错了~查查
      

  11.   

    啊!想起来了,我那个dll里面引用了个.lib文件,有没有可能它没找到呢?
    那这个.lib文件应该放在哪个目录下呢?
      

  12.   

    如果DLL里指定了目录的话就要放到那个指定的目录,不然放到当前程序目录应该就可以了~
      

  13.   

    谢谢楼上!
    看来不是.lib文件的问题了,因为我确实把它放在dll指定的文件里了
      

  14.   

    那字典文件模块也放到dll指定的文件里不就可以了吗?