Visual C++ - Linking plugin DLL against EXE?

后端 未结 4 1271
甜味超标
甜味超标 2021-02-04 13:34

I\'m in the process of porting a large C++ application from Linux (gcc) to Windows (Visual C++ 2008) and am having linker issues with plugins. On Linux this wasn\'t an issue, as

4条回答
  •  梦毁少年i
    2021-02-04 13:43

    You can't, easily. The windows loader isn't designed to export symbols out of an EXE and bind them to symbols in a DLL.

    One pattern that I have seen is the DLL export a certain function that the EXE calls. It takes as a parameter a structure which contains addresses of functions in the EXE for the DLL to call.

提交回复
热议问题