不同的赋值出现运行错误帮我看看。
while(1)
{
if(hinstDll==NULL) return 0;
Proc = (Sms_Receive)GetProcAddress(hinstDll,"Sms_Receive");
ZeroMemory(strText,50);
if(Proc(NULL,strText)==1)
{
ZeroMemory(tempinfo.content,200);
ZeroMemory(tempinfo.datetrans,50);
ZeroMemory(tempinfo.num,15);
///////////// sprintf(strText,"%s","123456789012345");
sprintf(tempinfo.content,"%s",strText);
sprintf(tempinfo.num,"%s","15815482223");
sprintf(tempinfo.datetrans,"%s","2011-4-20 11:00:00");
dataque.push(tempinfo);
}
if(dataque.size()>50)
{
Sleep(50);
}
}
上边有句sprintf注释了。如果没这句就出现运行时错误。有这句就不会。请问这是什么原因。