Skip to content

Instantly share code, notes, and snippets.

@caoxudong
Created June 2, 2013 13:39
Show Gist options
  • Save caoxudong/5693687 to your computer and use it in GitHub Desktop.
Save caoxudong/5693687 to your computer and use it in GitHub Desktop.
CString 2 char*
//用于将cstring转为char*
CString peerIdCString = _T("e0f4111df2a7d6bf591619884e353452bccb26c5a8ffa18079061d16f533fe1e");
USES_CONVERSION;
char* buffer = T2A(peerIdCString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment