UCHAR * to CString OR Reverse Converting

// CString to-> unsigned char *(UCHAR*)
CString cTmp(“abcdef”);
unsigned char * Test = (unsigned char*)cTmp.GetBuffer(cTmp.GetLength());

// unsigned char * to=> CSTring
CString str(Test);

  1. Henüz geridönüş yok.

Yorum yapın

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 / Değiştir )

Twitter picture

You are commenting using your Twitter account. Log Out / Değiştir )

Facebook photo

You are commenting using your Facebook account. Log Out / Değiştir )

Connecting to %s

Follow

Get every new post delivered to your Inbox.