string to char *

string to char *

BY 20 Jun 2013 General Support

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

Written by