Setting Library path for win32 console applications

后端 未结 4 1781
梦如初夏
梦如初夏 2021-01-03 10:55

I am getting \"dll not found:restarting the application may fix the problem\" error when i try to execute a simple \"HelloWorld\" win32 console application. I know the locat

4条回答
  •  迷失自我
    2021-01-03 11:27

    The documentation for LoadLibraryEx has some discussion on how Windows searches for your dll. You might try using the LOAD_WITH_ALTERED_SEARCH_PATH flag if you can construct a full path to your DLL or use the SetDllDirectory function to add a directory to the search path.

提交回复
热议问题