怎么用messageBox输出string类型的字符串, MessageBox(hwnd,str,TEXT("字符串"),MB_OK); 这一行报错
提示是:errorC2664:'MessageBoxA':cannotconvertparameter2from'classstd::basic_string<char,...
提示是:error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called 展开
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询