On Apr 30, 2007, at 3:08 PM, Tim Hare wrote:

>> Norman Wrote:
>>>> RedBlackRedRampEvaluate(ByRef info As MemoryBlock, inValue As
>>>> MemoryBlock, ByRef outValue As MemoryBlock)
>>
>>> This should just be Ptr. Byref is not required.
>>> RedBlackRedRampEvaluate( info As Ptr, inValue As Ptr, outValue As
>>> Ptr)
>>
>> Charles Wrote:
>>> Probably you should declare all three parameters to be of type
>>> MemoryBlock.
>>
>>> Sub RedBlackRedRampEvaluate(info as MemoryBlock, inValue as
>>> MemoryBlock, outValue as MemoryBlock)
>>
>> These two replies indicate my fundamental question. It appears that
>> there is
>> no *correct* answer, other than to try each out and see what
>> works. :-)
>
> There *is* a correct answer.  In fact, there are two, and you can  
> pick the
> one you prefer.
>
> int *value    ==>   value as Ptr  (or MemoryBlock)
> int **value   ==>   ByRef value as Ptr (or MemoryBlock)
>
> You don't need to "see what works".

Actually, there are at least three.

int *value ==> value as Integer
int **value ==> value as Integer


In some earlier versions of REALbasic, this was the only thing I  
could get to work.

Charles Yeomans


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to