winmysqladmin.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. HINSTANCE g_hinst;
  5. USERES("winmysqladmin.res");
  6. USEFORM("main.cpp", Form1);
  7. USEFORM("initsetup.cpp", Form2);
  8. USEFORM("db.cpp", dbfrm);
  9. USELIB("libmysqlclient.lib");
  10. USELIB("libmyisammrg.lib");
  11. USELIB("libheap.lib");
  12. USELIB("libisam.lib");
  13. USELIB("libmerge.lib");
  14. USELIB("libmyisam.lib");
  15. USELIB("libmysys.lib");
  16. USELIB("libregex.lib");
  17. USELIB("libstrings.lib");
  18. USELIB("libzlib.lib");
  19. //---------------------------------------------------------------------------
  20. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  21. {
  22.         try
  23.         {
  24.                  Application->Initialize();
  25.                  Application->HelpFile = "C:\mysql\bin\WINMYSQLADMIN.HLP";
  26.                  Application->Title = "WinMySQLadmin 1.0";
  27.                  Application->CreateForm(__classid(TForm1), &Form1);
  28.                  Application->CreateForm(__classid(TForm2), &Form2);
  29.                  Application->CreateForm(__classid(Tdbfrm), &dbfrm);
  30.                  Application->Run();
  31.         }
  32.         catch (Exception &exception)
  33.         {
  34.                  Application->ShowException(&exception);
  35.         }
  36.         return 0;
  37. }
  38. //---------------------------------------------------------------------------