Using Ruby /DL to invoke function in custom dll

Discussion in 'Ruby' started by sumeet90, Jun 7, 2012.

  1. sumeet90

    sumeet90

    Joined:
    Jun 7, 2012
    Messages:
    1
    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",10001)

    But its give me error like undefined method and
    `symbol': can't find the symbol
     
    sumeet90, Jun 7, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anushi
    Replies:
    5
    Views:
    8,783
  2. Lloyd Dupont

    how to invoke a method in a DLL

    Lloyd Dupont, Jul 13, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    374
    Natty Gur
    Jul 13, 2003
  3. Hugh Williams

    How to automate DLL deployment for P/Invoke?

    Hugh Williams, Nov 24, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    418
    Hugh Williams
    Nov 24, 2003
  4. H. Simpson
    Replies:
    4
    Views:
    287
    H. Simpson
    Aug 3, 2004
  5. di vi
    Replies:
    7
    Views:
    243
    Martin DeMello
    Feb 11, 2010
Loading...

Share This Page