Wrapper for ddl driver for windows. How to create?

11 views
Skip to first unread message

Denis Savchuk

unread,
Jul 2, 2015, 2:01:36 AM7/2/15
to ruby...@googlegroups.com
Hello All!

I have one hard and new task for me. I need attach dll driver to my program. After investigation a little beet I found that gem FFI can help me with it. So, some how I need to write wrapper for my dll with ffi but I don't know how to do it. Yes, I read some helps from ffi home page but examples is not about my task. Also, bad for me, I don't know c/c++ and need to read some magic book every time a try to look for examples on c.
Can you, please, help me? Send me some useful examples or link to useful article or book.
I have developers documentation for this dll like:

Connect

Used
properties                                          Tape                    Access
Name        
Password                                         Integer 8                   RW
ComNumber                                     Integer 0..255            RW
BaudRate                                         Integer 0..6               RW
Timeout                                           Integer 0..255            RW
ComputerName                                String                       RW

How it will help me?

Many thanks in advance for help!

BR, Denis.

Daniel Berger

unread,
Aug 11, 2015, 9:29:52 AM8/11/15
to ruby-ffi
Denis, I think trying to use FFI without knowing C first is going to be very difficult because you won't understand some of the underlying concepts, and what the FFI API is abstracting away, or how you should interface with existing C libraries. I would at least recommend a C course before trying to continue.

Regards,

Dan 
Reply all
Reply to author
Forward
0 new messages