我可以知道如何執行以下轉換嗎?字符數組到LPCTSTR
// el.strCap is char[50]
// InsertItem is expecting TCHAR pointer (LPCTSTR)
// How I can perform conversion?
// I do not have access in both "list" and "el" source code
// Hence, there is no way for me to modify their signature.
list.InsertItem(i, el.strCap);
而且不,我不希望使用
WideCharToMultiByte
他們太繁瑣使用。