大虾帮忙,“Msg为一控件名称,约等于NMPOP3->MailMessage”,Msg倒底是什么控件啊?
china910 (东蜀生) 的代码:
“if( Msg->AttachList->Count>0) //保存附件
{
TMemoryStream *temp2;
for(Loop=0;Loop<Msg->AttachList->Count;Loop++)
{
path=ExtractFilePath(ParamStr(0))+"AFP\\"+Msg->AttachList->Items[Loop]->FileName;
temp2=new TMemoryStream();
Msg->AttachList->Items[Loop]->Decoded->SaveToStream(temp2);
temp2->Position=0;
temp2->SaveToFile(path);//就是到这句有问题;错误信息:'Cannot Create d:\mail\afp\test.txt' 其中test.txt为附件名
temp2->Free();
delete temp2;
}
} //保存附件结束
其中Msg为一控件名称,约等于NMPOP3->MailMessage ”
请问谁知道Msg倒底是什么控件,在BCB中能找到吗?