Hello All,
This might be a very newbie question to many of you. From lib.openmpt.org it is possible to get the compiled binaries (as well as source code) for openmpt.
What I want to do, is that I wanna make an Excel VBA script to be able to play modplug music. I tried putting a reference to the DLL files but it did not work (says invalid library files). I know that DLL files contain binary program data. And in many other cases I just put a reference on the dll file and then I can use its implemented functions. But now I'm not sure which way to go.
I kindly ask for some advice on how to get started really.
Cheers,
Thomas
I have no idea about VBA programming so I cannot help you with the details, but depending on whether Excel (or the scripting host, I don't know where VBA scripts are executed) is a 32-bit or 64-bit application, you will have to grab the appropriate 32-bit or 64-bit version. Also check which operating system you are running, as there are currently no binaries provided that are guaranteed to work on Windows Vista and older.
VBA is an extended form of VBScript. It is capable of doing dll calls, but as Saga Musix explains, you need to make sure you use the right version of the dll. It has been many years since I did anything remotely like this though, so I can't be of any more help.