So just screwing around with a tutorial
here and am messing around with it.
First issue I ran into is it seems that this only compiles to C not C++? Next is the Win32API, which some have said also limits Ruby interactions with DLLs? Then we get P, I, L, for Strings, Integers, and Longs. So how do we throw Arrays as arguments to the DLLs? I know its possible, just not sure how to pull it off. Now what about Bitmaps, or pointers to whats in RMXP's memory for messing with Graphics?
First thing Im having an issue with is just adding a second function / method to the DLL.
The "hello" example in the DLL works fine. Called in RMXP by using:
myFunc =
Win32API.new("test.dll", "hello", "I", "I") # Integer In, Integer returns
then
myFunc.call(arg)
It allows me to toss an integer at the DLL, right now Im just incrementing, then spits back out a number to get spit back out. Data in, Data out. Thats all I cared at this point. So trying to add another function, called it "goodbye" in the DLL and it compiles fine, but when I try to make RMXP call to the new function, I get: "runtime error occured", "GetProcAddress: goodbye or goodbyeA".
What did I do wrong?