Calling functions in a DLL from C++

前端 未结 7 2456
清歌不尽
清歌不尽 2020-11-30 00:17

I have a solution in VS 2008 with 2 projects in it. One is a DLL written in C++ and the other is a simple C++ console application created from a blank project. I would like

7条回答
  •  难免孤独
    2020-11-30 00:59

    Might be useful: https://www.codeproject.com/Articles/6299/Step-by-Step-Calling-C-DLLs-from-VC-and-VB-Part-4

    For the example above with "GetWelcomeMessage" you might need to specify "__stdcall" in the typedef field before the function name if getting error after calling imported function.

提交回复
热议问题