that depends on the functions inside the dll. Those functions need to be defined in a way to accept the data you want them to receive.
so if you want to help you need to show us the functions you programmed inside the dll.
and if that dll wasn't programmed by you but by someone else (and then hopefully not using illegal data), then you need to link us to the source of the dll.
I have tried every letter in the alphabet. It seems that RPG Maker is not capable of sending or receiving a decimal value to/from a DLL.
Very frustrating (and surprising) indeed. :|
I'm not exactly sure how this works, but isn't possible to use void and covert it to a float when receiving or sending?
I'm not familiar with dll, but can you use string that convert to float back and forth?
The argument is float, but converted into string first, pass to dll.
In dll, the string converted into float for whatever reason, then pass back as a string to RM.
Edit: I didn't read, you already tried that way, but it isn't that it will drop your fps anyway, or it will?
Have you tried passing the float as a pointer?
I recommend you download the source code for a Ruby 1.9.3 release and check out how the Float is stored internally.
Try and see if it works should use require the same data type as the argument
Edit:
Do actual performance tests to see if the overhead actually matters or not.
It is possible the Win32API call overhead makes the little extra work you require insignificant.
I asked the same question on the Ruby forums on Monday and not a single reply.
Funnily enough there has only been three topics posted since that day which leads me to believe that the Ruby language has been deceased for many years.
Ugggh! The guys on the Ruby forums don't know either. I'll can the idea.
Cool thanks! I'll give that method a try.