Salut Caribensila,
Merci pour ton intervention, pour être précis, je presente ci*dessous les lignes de code :
HSemaphore := CreateSemaphore(nil, 2,2, 'Delta-soft');
if WaitForSingleObject (HSemaphore,0) <> wait_TimeOut then begin
Application.Initialize;
splashfrm := TSplashfrm.Create(application);
try
splashfrm.Show;
splashfrm.DoFade(100);
finally
splashfrm.Free;
end;
//** Application.Initialize;
Application.Title := 'Planet Compta';
Application.CreateForm(TFrmMain, FrmMain);
Application.CreateForm(TWReportSolde, WReportSolde);
Application.CreateForm(TwFusionFsseur, wFusionFsseur);
Application.CreateForm(TwFusionDivers, wFusionDivers);
Application.CreateForm(TwFusionCpteFin, wFusionCpteFin);
Application.CreateForm(TRapBalance, RapBalance);
Application.CreateForm(TwClients, wClients);
Application.CreateForm(TwRecCreditApplClient, wRecCreditApplClient);
//* Application.ShowFrmMain := False;
Application.Run;
end
else
begin
MesageBox(0,'Vous ne pouvez plus executer cette application', 'Delta-soft',0);
end;
if (HSemaphore <> 0 then begin
releasesemaphore(HSemaphore,1,nil);
Closehandle(hsemaphore);
end;
les fonctions "CreateSemaphore", " WaitForSingleObject ", etc. ne sont pas connues, le compilateur m'affiche le message d'erreur. Y-t'il autres choses à ajouter ?
Merci d'avance
a+
Notrica