Archived Forum Post

Index of archived forum posts

Question:

How to convert a const char * into a Ckstring?

Apr 15 '13 at 05:36

Hello,,,

How can i convert a const char * into a CkString? Regards.


Answer

Look at the "append" methods of CkString, see http://www.chilkatsoft.com/refdoc/vcCkStringRef.html

If the const char* is actually UTF-8, call CkString::put_utf8(true) first, see http://www.cknotes.com/?p=98