Hi,
A new ruby user here. I want to try using ruby to use an API for
accessing and retrieving data from a server. After doing some research I
learned about ruby/dl and tried the following in irb:
ENV['PATH'] += ";C\\projects\\test\\lib" # to include the dependecies of
the API
require 'dl/import'
extend DL::Importable
dlload "myAPI.dll"
extern "void serverLogon(string, string, string, void, void)"
but I get an error stating that the symbol "serverLogon" can't be found.
I'm pretty sure that I have the correct function name, but I downloaded
this DLL Export viewer to see the function names, and the application
lists the exported function as "_serverLogon@20". I tried using
"_serverLogon@20" in extern but I got a "can't parse the function
prototype" error.
I don't really have much experience with using dlls and I feel like I'm
missing something here. Can anyone clarify why I'm unable to use the
functions in the dll provided and why it has such odd names?
Many thanks!
- Grish
···
--
Posted via http://www.ruby-forum.com/.