realbasic-plugins
[Top] [All Lists]

Re: CFStrings on Win32

To: "REALbasic Plugins" <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: CFStrings on Win32
From: Thomas Tempelmann <listuser at tempel dot org>
Date: Thu, 26 Jan 2006 21:27:07 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Dave,

> const char *LocationCString = REALCString(inParameters->Location);
> CFStringRef LocationCFString = CFStringCreateWithCString(NULL,
>   LocationCString, REALGetStringEncoding(inParameters->Location));

You got the 2nd line wrong: To get the CString from a REALstring,
you must call LocationCFString->CString()

So, write:

 CFStringRef LocationCFString = CFStringCreateWithCString(NULL,
   LocationCString->CString(), ...
_______________________________________________
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>