On 8/31/05, dda <headspin at gmail dot com> wrote:
In RB:
Declare Sub testProc Lib libLocation (ByRef d As Double)
Dim d As Double
testProc(d)
In XCode:
void testProc(float *d) {
However, a double should be passed byref as "double *d". The C
'float'
type is equivalent to REALbasic's single type.
On 8/31/05, James Mullins <rblists at tpg dot com dot au> wrote:
Is there much overhead in the transfer between the Dylib and
RB? Is
it worth converting relatively small Methods over or will any
performance gains be lost in the transfer?
For a regular declare, it's just like any other function call.
HTH,
Jon
--
Jonathan Johnson
REAL Software, Inc.
_______________________________________________
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>