Convert CString to Char


This is sample

   1: // Convert CString to Char By Quintin Immelman. -> output = DummyToChar
   2: CString DummyString=dataPost.GetString();
   3: const size_t StringSize = 100;
   4: char DummyToChar[StringSize];
   5: size_t CharactersConverted = 0;
   6: wcstombs_s(&CharactersConverted, DummyToChar, DummyString.GetLength()+1, DummyString, _TRUNCATE);

ติดป้ายกำกับ:

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

%d bloggers like this: