realbasic-nug
[Top] [All Lists]

Re: toolbox questions

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: toolbox questions
From: Will Leshner <leshner at ljug dot com>
Date: Thu, 29 Aug 2002 15:40:11 -0700

On Thursday, August 29, 2002, at 03:24 PM, vvor wrote:

what if a toolbox function needs a struct, which would be a memoryblock of a
certain size, and the struct itself has to have a pointer to a list of
unknown size? how big should the memoryblock for the function be in that case? the struct other than the list would be about 90 bytes in size. i've been trying to throw a memoryblock of size 1000 as the parameter, but i am
crashing tremendously.


A pointer to another struct would just be a pointer: 4 bytes. The other struct would be a separate allocation and not part of the original struct. You are probably crashing because you don't have the pointer set up correctly and the toolbox call gets unhappy. The one struct would have to point to the other struct, not include it.

if a service i am attempting to sign in to requires a callback function, does this mean i have to create a class (datatype) in rb to respond to it?
and if the service seems to require certain cognizance in the callback
function of certain data only available to a client signed in to the
service, how does the client get that data if they are not logged in? e.g.,
size of the list of other clients signed in to that service?


I don't think you can do callbacks in RB. Unless, by callback, you mean something other than the callbacks that toolbox calls frequently want.



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