Ruby interaction with DLL

S

Shannon Fang

Hi All,

I am writing some program that need to call a DLL written in Delphi through
Ruby. The problem now is that the return value of the function is of type
"array of Integer" or PDWORD (pointer to a serie of 4-byte Integers).

Could anyone show me what is the "best practice" of converting DLL result
values to Ruby objects? (In this case, cast the memory to the Ruby Array
object whose value is Integer).

Thank you very much in advance.

Shannon
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top