【发布时间】:2018-09-02 14:34:46
【问题描述】:
我需要制作和 WCHAR。 但它不会工作,我总是得到一个错误:
Error C2440 'initializing': cannot convert from 'const wchar_t [11]' to 'WCHAR *'
StateError (active) E0144 a value of type "const wchar_t *" cannot be used to initialize an entity of type "WCHAR *
我的代码:
WCHAR *Testlooll = L"TEST";
【问题讨论】:
-
重复?伙计们真的吗? WCHAR* 与 TCHAR* 有什么关系(您的“ANSWER”副本中有什么内容)?
-
备案;由于缺少minimal reproducible example,我投票决定将其作为离题结束。
标签: c++ visual-c++