From: Albert Schlef Date: 2010-02-11T06:07:04+09:00 Subject: Re: Using Ruby /DL to invoke function in windows dll di vi wrote: > Hi, > > I have a C++ code converted into a windows Dll. [...] > require 'dl/import' > module MATHFUN > extend DL::Importable > dlload "math funcs.dll" > extern "double Add(double a, double b)" There are some utility programs that let you look into a library and see the symbols exposed. This way you see how the compiler mangled them. For example, in linux you can do `nm -D library.so`. Or create some 'extern "C"' wrapper functions for your methods. -- Posted via http://www.ruby-forum.com/.