realbasic-nug
[Top] [All Lists]

Re: declare w/ strings and arrays

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: declare w/ strings and arrays
From: Mars Saxman <mars at realsoftware dot com>
Date: Thu, 30 Sep 2004 12:28:05 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
yeomans at desuetude dot com wrote:

> First, the stringPtr work is unnecessary; you can pass an Rb String in
> the function, and somehow a CString will be what's actually fed to the
> function.

I don't believe that applies in this case; from his description, it sounds
like the fourth parameter is an output buffer where nc_get_var1_text can
write its results. If that is the case, then it would be very bad news to
pass in an RB string; the CString type is equivalent to "const char*", not
to "char*". 

Mars Saxman
REAL Software

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

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

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