언어 설정

Menu
Sites
Language
string to char *

Hi,

This problem might be simple.

i have the code as following

String strdatapath = this->GetAppDataPath();

I want to convert the string to a char *

I tried strdatapath.GetPointer()

also tried StringUtil::StringToUtf8N(strdatapath)

and Utf8Encoding::GetBytesN(strdatapath)

but could not find the proper way

Please help we regarding the same.

thanks

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 댓글
Pushpa G
Hi, Try this: String strdatapath = App::GetInstance()->GetAppDataPath(); AppLog("%ls",strdatapath.GetPointer()); for(int i = 0;i
Pushpa G
;i
Puhpa H
(lessthan)strdatapat.GetLength();i++) //here lessthan sign to be used { strdatapath.GetCharAt(i,chr); //here chr is declared as wchar_t chr j[i] = chr; AppLog("j value is %c",j[i]); }