T
Tea Figuric
Hello,
I am very new to Ruby, but I am giving it a try. If I am able to load
the dll and call its functions, I will go into more detail. The .dll is
created in VS2005 on XP os
First of all, I used the search function of the forum, but I didn't find
what I was looking for.
After initial problems, my ruby script recognizes the library (if I
remove the file, it complains).
It's a C wrapper library for a C++ library that has just a few functions
for now.
I am stuck at the beginning
My library is called qfinterface.dll and I would like to call the
function CreateSession(const char *) that returns an int, and pass it a
string.
I mostly get the error "uninitialized constant" when trying to call the
function, and I've tried so many different things, that I am losing
track of what I tried and what not. right now I get "undefined local
variable or method"
this is my script sofar(in one of its versions):
------------------------------------------------------------
require 'qfinterface'
puts "hello"
Qf = qfinterface.CreateSession("hd")
def main()
puts "hello"
#QfInterface.CreateSession("sf")
end
main()
-----------------------------------------------------
would you please point me into right direction in how to call these
classes.
please let me know if you need further information.
Thanks for your help!
I am very new to Ruby, but I am giving it a try. If I am able to load
the dll and call its functions, I will go into more detail. The .dll is
created in VS2005 on XP os
First of all, I used the search function of the forum, but I didn't find
what I was looking for.
After initial problems, my ruby script recognizes the library (if I
remove the file, it complains).
It's a C wrapper library for a C++ library that has just a few functions
for now.
I am stuck at the beginning
My library is called qfinterface.dll and I would like to call the
function CreateSession(const char *) that returns an int, and pass it a
string.
I mostly get the error "uninitialized constant" when trying to call the
function, and I've tried so many different things, that I am losing
track of what I tried and what not. right now I get "undefined local
variable or method"
this is my script sofar(in one of its versions):
------------------------------------------------------------
require 'qfinterface'
puts "hello"
Qf = qfinterface.CreateSession("hd")
def main()
puts "hello"
#QfInterface.CreateSession("sf")
end
main()
-----------------------------------------------------
would you please point me into right direction in how to call these
classes.
please let me know if you need further information.
Thanks for your help!