System.Runtime.InteropServices.SEHException异常,,,,郁闷死~~~
taoyi 2005-03-30 01:53:33 try
{
if (host.Length() == 0)
return false;
if (user.Length() == 0)
return false;
if (password.Length() == 0)
return false;
if (port == 0)
port = 21;
Host = host;
Port = port;
UserID = user;
Password = password;
pFtp->Host = Host;
pFtp->Port = Port;
pFtp->UserID = UserID;
pFtp->Password = Password;
pFtp->Connect();
this->Connected = true;
return this->Connected;
}catch(Exception &e)
{
MessageBox(NULL, (e.Message + "[Host=" + Host
+ " user=" + UserID + " password=" + Password).c_str(), "异常",
MB_OK);
return false;
}
求助~~,以上代码用C#调用后总是出现System.Runtime.InteropServices.SEHException异常,异常信息为外部组件发生异常
哪位老大救救偶啊~~~,偶想跳楼~