In RB:
Declare Sub testProc Lib libLocation (ByRef d As Double)
Dim d As Double
testProc(d)
In XCode:
void testProc(float *d) {
// do something
}
HTH
--
dda
http://sungnyemun.org/
RBDeveloper Columnist, "Beyond the Limits"
http://rbdeveloper.com
Liste Française Solutions RB
http://www.solutionsrb.com/
On 8/31/05, James Mullins <rblists at tpg dot com dot au> wrote:
> Hi all,
>
> Can someone help me with a method of passing ByRef to a Dylib
>
> Basically I have a variable test (double) that I need to pass by ref
> to my Dylib.
>
> I am new to writing Dylibs and they are easy and great to start
> simple projects with.
>
> I am converting an old method across to C in an effort to increase
> program speed.
>
> Any thoughts on how fast a C file (Dylib) will execute compared to
> inline RB code?
>
> 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?
>
> I hope all that makes sense,
>
> Best,
>
> James
_______________________________________________
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>
|