Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Using Ruby /DL to invoke function in custom dll

Reply
Thread Tools

Using Ruby /DL to invoke function in custom dll

 
 
sumeet90 sumeet90 is offline
Junior Member
Join Date: Jun 2012
Posts: 1
 
      06-07-2012
Hi,
I have used following code to invoke function from my custom dll
...................................
require 'dl'
require 'dl/import'
require 'dl/types'

module My
extend DL::Importable
dlload "unit.dll"
extern 'int BII_Initialize_Socket_Communications'
extern 'int BII_Open_TCPIP_Communications(char,unsigned short)'

end
My.BII_Initialize_Socket_Communications()
test = My.BII_Open_TCPIP_Communications("15.15.200.55",10 001)

But its give me error like undefined method and
`symbol': can't find the symbol
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Ruby /DL to invoke function in windows dll di vi Ruby 7 02-11-2010 07:54 AM
How to determine if a DLL is a COM DLL or .NET DLL Anushi ASP .Net 5 10-28-2004 01:59 PM
Why does Ruby use both tcl83.dll and tk83.dll (instead of just tk83.dll)? H. Simpson Ruby 4 08-03-2004 04:45 PM
mprapi.dll --> samlib.dll --> ntdll.dll issue. Some1 Computer Support 4 04-05-2004 02:02 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57