I tried declaring a uint32, but alas that doesnt help the plug compile. I tried adding the declare, but still ran into the same issue. If I cant figure out how to do this, may have to convert the int's to strings, then use a str array and then convert it back to int in RB, I guess? Possibly create an object instead of an array is another option?
Here is the current snippet of code: REALarray retArr; retArr = REALCreateArray(kTypeUInt32,4); uint32 bar = 50; REALSetArrayValue(retArr, 0, bar); Cj > > Message: 1 > Date: Thu, 4 Mar 2010 22:04:02 -0800 > From: Cj Berg <[email protected]> > Subject: REALarray Question > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > Hello everyone, > > I am hoping to put the finishing touches on this plugin. I am having an issue > creating a REALarray of int. > REALarray retArr > retArr = REALCreateArray(kTypeUInt32,4); > REALSetArrayValue(retArr, 0, 1); // '1' or an uint32 > > If I set the type to Uint8, it works fine, but if I set it to the 32bit (or > anything but the uInt8) I get the compile error of Call of overloaded. > > Thank you for any help, > > Cj > > > > Message: 3 > Date: Fri, 05 Mar 2010 09:08:43 -0700 > From: Brian OBrien <[email protected]> > Subject: Re: REALarray Question > To: REALbasic Plugins <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > define a variable called v > dim v as UInt32 = 1 > pass v instead of 1 > > -- > > 'Brian O'Brien. > > 'Seaman Family MR Research Center. > > 'PACS System Manager. > > https://me.vonage.com/bjobrien > > > > > ------------------------------ > > Message: 4 > Date: Fri, 05 Mar 2010 11:27:47 -0500 > From: Alfred Van Hoek <[email protected]> > Subject: Re: REALarray Question > To: REALbasic Plugins <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Mar 5, 2010, at 1:04 AM, Cj Berg wrote: > >> REALSetArrayValue(retArr, 0, 1); // '1' or an uint32 > > Use REALSetArrayValueUInt32. If that does not work make sure you > define FLAT_C_PLUGIN_HEADERS 1 > > Alfred > > > > ------------------------------ > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> > > End of realbasic-plugins Digest, Vol 67, Issue 1 > ************************************************ > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
