近日用c#在编写指纹采集与验证模块时,当通过P/Invoke调用vc6.0编写的dll 时出现

程序找不到当前运行目录下的该文件.

如下图所示:


解决 “System.DllNotFoundException …找不到指定的模块.”

 

解决办法:

安装VC++ Runtime Libraries ,VC++ MFC and Template Libraries;

如下图所示:


解决 “System.DllNotFoundException …找不到指定的模块.”

 原因:
       被注册的控件需要其它模块,比如动态库之类的,用VC6.0下的工具depends察看控件需要的模块,把他们一并拷贝到控件的相同目录下. 
       depends为vc自带的工具.在Microsoft   Visual   Studio   6.0   Tools中可找到.

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-07-27
  • 2022-01-21
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案