“The specified procedure could not be found” error with .NET 4

前端 未结 1 1929
余生分开走
余生分开走 2021-01-06 08:12

I am developing on a 64-bit Windows 7 box with Visual Studio 2012 (11.0.51106.01 Update 1).

I have a Support project that compiles some C code into a (32-bit) DLL. I

相关标签:
1条回答
  • 2021-01-06 08:45

    Problem solved. Some things to note as I went through troubleshooting steps, for those who stumble upon this in the future.

    1. This error does not necessarily mean it can't find procedure X -- rather it may mean it can't find function Y, from another dll, that is called by X.
    2. Make sure to compile the DLL in 'Release' mode, as the C++ redistributable will not include the debug DLLs.
    3. Start with a shell function, and add pieces back in, one by one.

    In my above test example, the problem was I was compiling as a Debug version.

    However, in my complete function, that change did not fix the issue. It turns out I was missing some DLLs that dependency walker did not catch.

    0 讨论(0)
提交回复
热议问题