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 don't know how to call it.
Is there a way of declaring an imported function in C++ like in C# ?
Click Start > All Programs > Accessories and right-click on "Command Prompt" and select "Run as Administrator" OR in the Search box, type CMD and when cmd.exe appears in your results, right-click on cmd.exe and select "Run as administrator" At the command prompt, enter: REGSVR32 "PATH TO THE DLL FILE"
The c# syntax for declaring an imported function is not available in c++. Here are some other SO questions on how to use DLLs:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With