I'm trying to write a custom DLL, but I can't get it to run in rpgmaker. I followed this tutorial: http://www.rpgmakercentral.com/topic/18757-writing-your-own-dll-and-calling-it-from-rm/
It crashes with a LoadLibrary error. I think the dll is being correctly located (procmon output is completely different if i reference the file name incorrectly), but something is going wrong. It fails when attempting to initialize the library, before trying call it. I've played around with methods and arguments, but everything gives the same error. These are all the references to the dll in procmon below. Any ideas what the problem is, or how to go about investigating the issue?
Here's the C++ files:
And here's the Ruby:
It crashes with a LoadLibrary error. I think the dll is being correctly located (procmon output is completely different if i reference the file name incorrectly), but something is going wrong. It fails when attempting to initialize the library, before trying call it. I've played around with methods and arguments, but everything gives the same error. These are all the references to the dll in procmon below. Any ideas what the problem is, or how to go about investigating the issue?
Here's the C++ files:
And here's the Ruby: