dllimport可以使用绝对路径

DllImport(@"C:\OJ\Bin\Judge.dll")

也要以使用相对路径

DllImport(@"..\dll\Judge.dll")

 

..的意思是上一级目录,这样就能找到dll文件了

相关文章:

  • 2021-06-04
  • 2022-12-23
  • 2022-02-15
  • 2021-06-17
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2022-01-06
  • 2022-12-23
  • 2021-10-17
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案