[futurebasic] Re: [FB] continued - Problem converting Pascal strings to C strings - inside CFStringRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2011 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Thu, 29 Sep 2011 06:29:27 +0100
Thomas Peters wrote:

> Here is an example of my problem converting from Pascal strings to C
> Strings…
> < snip >
> dim valuesCount      as int
> dim i                as int

Not an answer to your problem (because I don't understand what you're trying to achieve), but those vars should be dimmed as CFIndex. Also, it'd be slightly less typing (and prettier) using 'dim as' syntax:

	dim as CFIndex   valuesCount, i

btw, I can't see why the BeginC…EndC block is necessary.