CT2A

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).

좋은 웹페이지 즐겨찾기