programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: Re Passing double floats to an external dll

From: Smith, Roland A <r.a.smith_at_imperial.ac.uk>
Date: Thu, 26 Oct 2006 21:50:19 +0100

Hi Charles

>> Calls to a function requiring a float argument. eg
>>
>> 2 Import: _FreeImage_RotateClassic_at_12 ( addr Dfloat -- bool )
>
>
> \ so far I remember, Dfloat is like two parameters:
>
> 3 IMPORT: _FreeImage_RotateClassic_at_12 ( addr 2*float -- bool )
>
> : RotateClassic ( s: addr -- bool )( f: radius -- )
> 1dfparms _FreeImage_RotateClassic_at_12 ;
>

Ah ! That fixes things very nicely thank you. Interestingly the equivalent
Win32For code has an import line :-

2 proc _FreeImage_RotateClassic_at_12 as FIRotate

which threw me off a bit.

Cheers, Roland

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Oct 26 2006 - 13:51:47 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:41 PST