C# to C++/CLI to C DLL System.IO.FileNotFoundException

前端 未结 6 1726
野的像风
野的像风 2021-01-05 09:52

I\'m getting System.IO.FileNotFoundException: The specified module could not be found when running C# code that calls a C++/CLI assembly which in turn

6条回答
  •  逝去的感伤
    2021-01-05 10:18

    Had the same problem switching to 64-bit Vista. Our application was calling Win32 DLLs which was confusing the target build for the application. To resolve it we did the following:

    1. Go to project properties;
    2. Select Build tab;
    3. Change 'Platform target:' option to x86;
    4. Rebuild the application.

    When I re-ran the application it worked.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题