From: Christian Bodt Date: 2010-03-06T01:22:59+09:00 Subject: [ruby-core:28512] Re: Patch for : ext\dl\handle.c --0016e6d64559b8d4430481101c2e Content-Type: text/plain; charset=UTF-8 > At Fri, 5 Mar 2010 22:24:01 +0900, > Christian Bodt wrote in [ruby-core:28504]: > > Initially, I wanted to add the support for loading of symbols with the > > format "_function NNN" (from MSCV dlls) but the "dlhandle_sym" function was > > a little to complex to implement it without some refactoring. I will need > > some more patches to achieve this :) > > It's already supported. > Hi Nobu, Are you sure the underscore at the beginning of is also supported? I didn't find it in the source code. Last time I tried when implementing a 1.9 binding for bgd.dll compiled with MSVC I had to write : _____ module GD2 extend DL::Importer dlload "bgd.dll" extern "GDImagePtr _gdImageCreateFromJpeg (void*)" # note the underscore at the beginning (...) end _____ Thanks, Christiaan --0016e6d64559b8d4430481101c2e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > At Fri, 5 Mar 2010 22:24:01 +0900,
> Christian Bodt wrote in [ru= by-core:28504]:
> > Initially, I wanted to add the support for loa= ding of symbols with the
> > format "_function <at> NNN= " (from MSCV dlls) but the "dlhandle_sym" function was
> > a little to complex to implement it without some refactoring. I w= ill need
> > some more patches to achieve this :)
>
>= It's already supported.
>

Hi Nobu,

Are you sure t= he underscore at the beginning of is also supported? I didn't find it i= n the source code.
Last time I tried when implementing a 1.9 binding for bgd.dll compiled with= MSVC I had to write=C2=A0 :
_____
module GD2
=C2=A0=C2=A0=C2=A0 e= xtend DL::Importer

=C2=A0=C2=A0=C2=A0 dlload=C2=A0 "bgd.dll&quo= t;
=C2=A0=C2=A0=C2=A0 extern "GDImagePtr _gdImageCreateFromJpeg (vo= id*)"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # note the underscore at the begin= ning
=C2=A0=C2=A0=C2=A0 (...)
end
_____

Thanks,

Christiaan<= br>
--0016e6d64559b8d4430481101c2e--