1,CString转为char *
char szAsciiIP[64];
memcpy(szAsciiIP, CT2A(m_pEncoder->m_strIP), sizeof(szAsciiIP));
2,详见MSDN
http://msdn.microsoft.com/en-us/library/87zae4a3(v=vs.80).aspx
CSourceType2[C]DestinationType[EX]
where:
-
SourceType and DestinationType are described in the table below.
-
[C] is present when the destination type must be constant.
-
[EX] is present when the initial size of the buffer must be specified as a template argument.
SourceType/DestinationType |
Description |
A |
ANSI character string. |
W |
Unicode character string. |
T |
Generic character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise). |
OLE |
OLE character string (equivalent to W). |