主题:关于char和LPCSWTR转换的问题
就是定义的是char字符数组,在求字符数组长度时出现数据类型不对的问题
cpp(215) : error C2664: 'lstrlenW' : cannot convert parameter 1 from 'char [100]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\ch5.cpp(215) : error C2664: 'TextOutW' : cannot convert parameter 4 from 'char [100]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
cpp(215) : error C2664: 'lstrlenW' : cannot convert parameter 1 from 'char [100]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\ch5.cpp(215) : error C2664: 'TextOutW' : cannot convert parameter 4 from 'char [100]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast