标签: c++ c windows winapi
遇到了这个,并想知道它做了什么
LPCTSTR szmyLPCTSTR; // doing _tcsncpy things with that string //at the end then there is this line which i am not sure what it does szmyLPCTSTR[122] = 0;
谢谢!
答案 0 :(得分:2)
LPCTSTR只是指向字符的指针。它正在为字符串添加一个空终止符。