program ContentPRJ;<br><br>uses<br> Dialogs,<br> Windows,<br> Forms,<br> UnitContent in 'UnitContent.pas' {FormContent},<br> UnitConst in 'UnitConst.pas',<br> ConnectFunc in 'ConnectFunc.pas',<br> UnitCBMSConst in 'UnitCBMSConst.pas',<br> UnitDataModule in 'UnitDataModule.pas' {DataModule1: TDataModule},<br> UnitAddContent in 'UnitAddContent.pas' {FormAddContent},<br> UnitUpload in 'UnitUpload.pas' {FormUpload},<br> UnitLPARTITION in 'UnitLPARTITION.pas' {FormLPARTITION},<br> UnitMediaPlayer in 'UnitMediaPlayer.pas' {FormMediaPlayer},<br> UnitDATTOMPG in 'UnitDATTOMPG.pas' {FormDATTOMPG},<br> UnitBase in 'UnitBase.pas' {BaseForm},<br> UnitModifyContent in 'UnitModifyContent.pas' {FormModifyContent},<br> UnitBatchUpload in 'UnitBatchUpload.pas' {FormBatchUpload},<br> UnitDownload in 'UnitDownload.pas' {FormDownload},<br> UnitChangeName in 'UnitChangeName.pas' {FormChangeName},<br> CBNLoginAttest in 'CBNLoginAttest.pas',<br> UnitDataExchange in 'UnitDataExchange.pas' {FormDataExchange},<br> UnitLogin1 in 'UnitLogin1.pas' {FormLogin1},<br> XPBarMenu in 'XPBarMenu.pas',<br> XPMenu in 'XPMenu.pas',<br> UnitLogin in 'UnitLogin.pas' {FormLogin};<br><br>{$R *.res}<br><br>var<br> hMutex : HWND; <br> Ret : Integer;<br><br>begin<br> Application.Initialize;<br> Application.Title := 'CSMS3.0 Program Manage Module' ;<br> hMutex:=CreateMutex(nil,False,'CSMS3.0 Program Manage Module');<br> Ret:=GetLastError;<br> If Ret<>ERROR_ALREADY_EXISTS Then<br> Begin<br> Application.CreateForm(TFormContent, FormContent);<br> Application.CreateForm(TDataModule1, DataModule1);<br> Application.CreateForm(TFormAddContent, FormAddContent);<br> Application.CreateForm(TFormUpload, FormUpload);<br> Application.CreateForm(TFormLPARTITION, FormLPARTITION);<br> Application.CreateForm(TFormMediaPlayer, FormMediaPlayer);<br> Application.CreateForm(TFormDATTOMPG, FormDATTOMPG);<br> Application.CreateForm(TBaseForm, BaseForm);<br> Application.CreateForm(TFormModifyContent, FormModifyContent);<br> Application.CreateForm(TFormBatchUpload, FormBatchUpload);<br> Application.CreateForm(TFormDownload, FormDownload);<br> Application.CreateForm(TFormChangeName, FormChangeName);<br> Application.CreateForm(TFormDataExchange, FormDataExchange);<br> Application.CreateForm(TFormLogin1, FormLogin1);<br> Application.CreateForm(TFormLogin, FormLogin);<br> Application.Run;<br> end<br> else<br> MessageBox(application.handle,'程序已经启动,无需再次运行','提示',MB_ICONASTERISK or MB_OK);<br> ReleaseMutex(hMutex);<br>end.