gpt4 book ai didi

c++ - 错误 C2664 : 'MessageBoxA' : cannot convert parameter 2 from 'std::string' to 'LPCSTR'

转载 作者:太空宇宙 更新时间:2023-11-04 16:19:29 25 4
gpt4 key购买 nike

<分区>

我在 C++ 中试过这个:

std::string teststring = "hello";
MessageBox(NULL,teststring,NULL, NULL);

错误 C2664:“MessageBoxA”:无法将参数 2 从“std::string”转换为“LPCSTR”

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com