C++ char* 作为参数 和messagebox的问题

2025-03-11 13:02:43
推荐回答(2个)
回答1:

试试这样:
MT4_EXPFUNC LPCTSTR __stdcall Hello(LPCTSTR say)
{
MessageBox(NULL,TEXT(say),TEXT("Here is the title for the messagebox"),MB_OK);
return say;
}

回答2:

编码 问题
将编译器的默认编码设为Unicode即可