13,825
社区成员
发帖
与我相关
我的任务
分享
{
AnsiString str = "abc";
ShowMsg(int(&str));//ShowMsg函数要实现将"abc"显示出来,请问这个函数应该怎么写呢?
//而且我一定要传递int型地址
}
char *lp = new char[str.Length + 1];
strcpy(lp, str.c_str());
lp[str.Length] = 0x0;
SendMessage( , , ,(LPARAM)lp);
delete []lp;
PostMessage( , , ,int(&str));//前面3个参数省略了