From: Wolfgang Date: 2005-05-30T20:35:21+09:00 Subject: Re: WIN32API Hello Brian, up to now I only have this in ruby: require 'Win32API' win = Win32API.new("dlltest.dll","DLL_WOOD",[],'L') somevalues = win.call() print somevalues the self made dll should return at the moment a fixed value (for testing). I tried this with an integer, than it works. As soon I define the variable in fortran as real, I get this nice numbers. Wolfgang Brian Schr�der wrote: > On 30/05/05, Wolfgang wrote: > >>Hello, >> >>I started programming not too long ago, so please excuse this question >>if it is too silly. >> >>I wrote a small dll in fortran wich gives back a number. when I call >>this dll from ruby I get this number only when it is defined as integer >>in fortran. When I change it to real I get "1065353216" when the dll >>should give back 1.0 >> >>What do I make wrong? >> >>Thanks >> >>Wolfgang >> >> > > > It seems to me that you are reading the return value of the dll > function as an integer, while a floating point number is returned. How > are you're interfaces defined. Could you post some code? > > best regards, > > Brian > >