MultiMedia.cpp
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:1k
源码类别:

Delphi/CppBuilder

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. //---------------------------------------------------------------------------
  5. USEFORM("MainUnit.cpp", MainForm);
  6. USEFORM("MpgPlay.cpp", MpgForm);
  7. USEFORM("WavePlay.cpp", WaveForm);
  8. USEFORM("MidiPlay.cpp", MidiForm);
  9. USEFORM("CDPlay.cpp", CDForm);
  10. //---------------------------------------------------------------------------
  11. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  12. {
  13.         try
  14.         {
  15.                  Application->Initialize();
  16.                  Application->CreateForm(__classid(TMainForm), &MainForm);
  17.                  Application->CreateForm(__classid(TMpgForm), &MpgForm);
  18.                  Application->CreateForm(__classid(TWaveForm), &WaveForm);
  19.                  Application->CreateForm(__classid(TMidiForm), &MidiForm);
  20.                  Application->CreateForm(__classid(TCDForm), &CDForm);
  21.                  Application->Run();
  22.         }
  23.         catch (Exception &exception)
  24.         {
  25.                  Application->ShowException(&exception);
  26.         }
  27.         catch (...)
  28.         {
  29.                  try
  30.                  {
  31.                          throw Exception("");
  32.                  }
  33.                  catch (Exception &exception)
  34.                  {
  35.                          Application->ShowException(&exception);
  36.                  }
  37.         }
  38.         return 0;
  39. }
  40. //---------------------------------------------------------------------------