There is. I explain how to pass structures as parameters in PowerPC
apps in my declares book <http://www.declareSub.com/>. The trick I
used below works in general for functions that return a structure,
but I recall that 64-bit integers might be a special case of the
PowerPC calling conventions.
Charles Yeomans
On Dec 9, 2006, at 5:36 PM, James H.Membrez wrote:
I tried this too in 5.5.5 and indeed it does not work. (I would
use RB2006, but it's way too slow on my machine.) This is not a big
deal -- I can use the MBS plugin to get access to Core Audio host
time functions. I just wanted to see if there were a way to do the
same thing using declares. But it would be good to know if there
were a way to get access to 64 bit values when UInt64 isn't available.
On Dec 9, 2006, at 4:24 PM, Norman Palardy wrote:
On Dec 09, 2006, at 12:57 PM, Charles Yeomans wrote:
Ah. 5.5.5. I had overlooked that. The following might work.
Declare Sub AudioGetCurrentHostTime Lib "CoreAudio" (returnValue
as Ptr)
dim hostTime as new MemoryBlock(8)
AudioGetCurrentHostTime hostTime
Doesn't seem to
hostTime is always 8 bytes of 0's but in Rb2006r4 where I can use
a UInt64 it gives a non-zero value
I don't need this particular function but I have other spots where
I need a Uint 64 returned
I'll try this with them
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>