B
Ben
Hi, I copied a dll from a matlab sample. (matlab uses this DLL to demo
its dll loading function). one of the functions in this DLL is
stringToUpper which has the prototype
EXPORTED_FUNCTION char* stringToUpper(char *);
For the arguments in Win32API.new, I assumed the 3rd arg is the input
type, so tried 'S' as string. 'L' is the return type as long. Not sure
if I need to use 'S' instead.
If a function has 3 parameters, do I need to write ['S', 'L', 'F'] for
string, integer, float inputs?
=========================================
irb(main):001:0> require 'Win32API'
=> true
irb(main):002:0> aa =
Win32API.new("shrlibsample.dll","stringToUpper",['S'],'L' )
RuntimeError: LoadLibrary: shrlibsample.dll
from (irb):2:in `initialize'
from (irb):2
irb(main):003:0>
==========================================
Any comments are welcome.
its dll loading function). one of the functions in this DLL is
stringToUpper which has the prototype
EXPORTED_FUNCTION char* stringToUpper(char *);
For the arguments in Win32API.new, I assumed the 3rd arg is the input
type, so tried 'S' as string. 'L' is the return type as long. Not sure
if I need to use 'S' instead.
If a function has 3 parameters, do I need to write ['S', 'L', 'F'] for
string, integer, float inputs?
=========================================
irb(main):001:0> require 'Win32API'
=> true
irb(main):002:0> aa =
Win32API.new("shrlibsample.dll","stringToUpper",['S'],'L' )
RuntimeError: LoadLibrary: shrlibsample.dll
from (irb):2:in `initialize'
from (irb):2
irb(main):003:0>
==========================================
Any comments are welcome.