realbasic-nug
[Top] [All Lists]

Turning Integers into MemoryBlocks?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Turning Integers into MemoryBlocks?
From: Charlie Boisseau <charlie at 006 dot co dot uk>
Date: Tue, 31 Aug 2004 15:24:53 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi,

I am attempting something using declares and callbacks. I remember someone on the lists (Joe or Jon I think) saying that you had to put all the parameters' data types as integers. Apparently all I would have to do is pass the integer data to a MemoryBlock and read out the string or whatever else is in the data.

I can do this, although I only get the first few bytes of the data. To me this is understandable, seeing as an integer is only a 4-byte data type. If this really was the reason for not getting all the data, it confuses me further - I can get more than 4 bytes from the MemoryBlock after passing the integer.

Can someone let me know if there's a way to work round this? The alternative is to file a feature request for MemoryBlock support in callback functions - I think I might request it anyway.

Cheers.

--
Charlie Boisseau

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>