Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in August and this forum will be retired.

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

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
accept rate: 35%

We have now added UTF-16 APIs on iOS for streaming character data to and from the database - available in the next EBF ( 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
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 22 Nov '11, 17:49

question was seen: 1,537 times

last updated: 07 May '12, 11:39