| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Passing ByRef to Dylib |
| From: | Jonathan Johnson <jonj at realsoftware dot com> |
| Date: | Wed, 31 Aug 2005 06:41:47 -0500 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZjTNAw2copgcxxGu4Hrw40X8I1h2dCUrP1/U+LM6icvFrkCalAjwfjEPiuBT//yfyPsfqBt5Sh8o7TDbu4Vd8c/Ek53WwqaYAmq3gjocyJwVLaHUTf96QX7TuvrIUTGHRFLY4Zk6NCHy6bl55IDXp0GJDSa3Ol3YOqxnpPCPbC0= |
| References: | <0DB839F2-7234-421F-9F4D-6B548F3DF879 at tpg dot com dot au> <eb8fc193050831021825d8a560 at mail dot gmail dot com> |
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>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | COMMAND+DELETE for Menu CommandKey, Chase |
|---|---|
| Next by Date: | (no subject), SoftwareDev |
| Previous by Thread: | Re: Passing ByRef to Dylib, dda |
| Next by Thread: | Re: Passing ByRef to Dylib, James Mullins |
| Indexes: | [Date] [Thread] [Top] [All Lists] |