setupdb.cpp
来自「该程序实现了SQL数据库文件(mdf,ldf)的自动安装,备份及还原.」· C++ 代码 · 共 37 行
CPP
37 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
extern LPSTR cmdStr;
//---------------------------------------------------------------------------
USEFORM("MainForm.cpp", MainInstallForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreInstance, LPSTR lpszCommandLine, int cmdShow)
{
try
{
Application->Initialize();
cmdStr = lpszCommandLine;
Application->Title = "学费管理系统数据库备份/恢复工具";
Application->CreateForm(__classid(TMainInstallForm), &MainInstallForm);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?