[futurebasic] Re: [FB] Doubles from resource?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2001 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Sun, 03 Jun 2001 14:27:04 +0200
Hans van Maanen wrote:
> 
> Hi --
> 
> I have a list of Doubles (8 bytes), in a Prefs resource. How do I
> extract these? I tried something like
> 
> resH& = fn Get1Resource(_"Doub",128)
> long if resH&
>         blockmove [resH&] + 0, varptr(a#), 8
>         blockmove [resH&] + 8, varptr(b#), 8
> end if
> 
> but this does not seem to work at all. Someone please tell me if this
> is possible at all? And do I have to set the  Preferences in FB?
> 
> Thanks!
> 
> Hans van Maanen
> 
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>

Hans,

I would try something like this to see if it works:

a# = resH&..nil#
b# = resH&..8#
-- 

Cheers

Alain

-----------------------------------------------------
FB^3 in Europe:  http://euro.futurebasic.com/
FB II Pouch:     http://www.pixmix.com/FB/outils.html
-----------------------------------------------------