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

≯℡__Kan透↙ 提交于 2019-11-30 22:24:04

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!