Import a DLL with C++ (Win32)

前端 未结 3 1867
萌比男神i
萌比男神i 2020-12-09 10:28

How do I import a DLL (minifmod.dll) in C++ ?

I want to be able to call a function inside this DLL. I already know the argument list for the function but I

3条回答
  •  天命终不由人
    2020-12-09 11:02

    The c# syntax for declaring an imported function is not available in c++. Here are some other SO questions on how to use DLLs:

    • Explicit Loading of DLL
    • Compile a DLL in C/C++, then call it from another program
    • Calling functions in a DLL from C++
    • Call function in c++ dll without header
    • How to use dll's?
    • Is this a good way to use dlls? (C++?)

提交回复
热议问题