internet.cpp
来自「BCB编写的使用SMTP、POP3和FTP的例子」· C++ 代码 · 共 31 行
CPP
31 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
USERES("Internet.res");
USEFORM("Internet_c.cpp", MailForm);
USEFORM("Ftp_c.cpp", FtpForm);
USEFORM("Pop3_c.cpp", Pop3Form);
USEFORM("Smtp_c.cpp", SmtpForm);
USEFORM("..\Net\NNtp\NNtp_c.cpp", NNtpForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->HelpFile = "Internet.hlp";
Application->CreateForm(__classid(TMailForm), &MailForm);
Application->CreateForm(__classid(TFtpForm), &FtpForm);
Application->CreateForm(__classid(TPop3Form), &Pop3Form);
Application->CreateForm(__classid(TSmtpForm), &SmtpForm);
Application->CreateForm(__classid(TNNtpForm), &NNtpForm);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
return 0;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?