Hi x-s-s,
感谢在MSDN论坛发帖。
>>typedef ATL::CStringT< TCHAR, StrTraitMFC< TCHAR > > CString;这句话什么意思?
这个语句的本质就是通过typedef定义了一个名称为CString, 类型为ATL::CStringT< TCHAR, StrTraitMFC_DLL< TCHAR > >的类。而CStringT是一个模板类,定义在cstringt.h中,你也可以研究一下。在研究之前,建议你先熟悉一下模板的含义。
这里有篇文档关于如何使用CString,你可以参考一下。
https://msdn.microsoft.com/en-us/library/ms174288.aspx
希望对你有所帮助。
Best Regards,
Sera Yu
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this
thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.