MultiMedia.cpp
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:1k
源码类别:
Delphi/CppBuilder
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- //---------------------------------------------------------------------------
- USEFORM("MainUnit.cpp", MainForm);
- USEFORM("MpgPlay.cpp", MpgForm);
- USEFORM("WavePlay.cpp", WaveForm);
- USEFORM("MidiPlay.cpp", MidiForm);
- USEFORM("CDPlay.cpp", CDForm);
- //---------------------------------------------------------------------------
- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
- {
- try
- {
- Application->Initialize();
- Application->CreateForm(__classid(TMainForm), &MainForm);
- Application->CreateForm(__classid(TMpgForm), &MpgForm);
- Application->CreateForm(__classid(TWaveForm), &WaveForm);
- Application->CreateForm(__classid(TMidiForm), &MidiForm);
- Application->CreateForm(__classid(TCDForm), &CDForm);
- Application->Run();
- }
- catch (Exception &exception)
- {
- Application->ShowException(&exception);
- }
- catch (...)
- {
- try
- {
- throw Exception("");
- }
- catch (Exception &exception)
- {
- Application->ShowException(&exception);
- }
- }
- return 0;
- }
- //---------------------------------------------------------------------------