Import a DLL with C++ (Win32)

前端 未结 3 1866
萌比男神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:00

    At runtime you can call LoadLibrary() and then call GetProcAddress() to access the function from a DLL. You will need to cast this address to a prototype you define with typedef . See the example at GetProcAddress documentation page.

提交回复
热议问题