Problem compiling app for iOS when changing from 12.0.0 to 12.0.1 - Unicode API no longer available

The UltraLite headers that are included in an iOS application have changed from 12.0.0 to 12.0.1. My application uses APIs and types that are defined under this condition: #ifdef UL_WCHAR_API . However, upgrading the version, and without changing anything else, UL_WCHAR_API is no longer defined, and the API and type definitions are no longer accessible. Trying to force the definition creates other problems such as ambiguous definitions, etc. Has anyone else had this problem? Is there anything we can do to safely enable this define?

Running on MacOSX Snow Leopard 10.6.7, XCode 4.2, iOS SDK 5.0

Thanks in advance.

asked 22 Nov '11, 17:49

Jobson's gravatar image

Jobson
1765612
accept rate: 0%


The WCHAR (2-byte UCS-2/UTF-16) API is only supported on Windows platforms (where wchar_t is 2 bytes). The intention is that UTF-8 is used on iPhone.

Having said that - can you explain why you are using the wide APIs?

permanent link

answered 23 Nov '11, 10:14

Tim%20McClements's gravatar image

Tim McClements
1.9k1827
accept rate: 38%

We have now added UTF-16 APIs on iOS for streaming character data to and from the database - available in the next EBF (12.0.1.3713 or later). The APIs are:

ULPreparedStatement::AppendParameterStringChunk ULResultSet::GetStringChunk ULResultSet::AppendStringChunk

permanent link

answered 07 May '12, 11:39

Tim%20McClements's gravatar image

Tim McClements
1.9k1827
accept rate: 38%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×145

question asked: 22 Nov '11, 17:49

question was seen: 744 times

last updated: 07 May '12, 11:39