Advertisement

06.12.2008 at 07:29PM PDT, ID: 23481638
[x]
Attachment Details

How do I declare a literal unicode string for the Mac

Asked by JohnGaby in Apple Programming, C++ Programming Language, Carbon Programming Language

Tags: C++

How do I declare a literal unicode string?  For example, with Windows I would simply use:

WCHAR text[]      = L"This is a unicode string";

For the Mac, I would like to do something like

UniChar text[] = L"This is a unicode string";

Now I know about CFSTR and CFStringRef, and that is not what I am looking for.  Is there a way to declare non-encapsulated literal unicode strings?
Start Free Trial
 
Loading Advertisement...
 
[+][-]06.12.2008 at 10:34PM PDT, ID: 21776186

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.13.2008 at 09:05AM PDT, ID: 21780295

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.13.2008 at 10:01AM PDT, ID: 21780761

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.15.2008 at 09:20AM PDT, ID: 21788953

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apple Programming, C++ Programming Language, Carbon Programming Language
Tags: C++
Sign Up Now!
Solution Provided By: JohnGaby
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628