Fórum Serviços criados no Delphi para Windows 2003 #362140

06/08/2008

0

Criei um serviço para backup no delphi baseado no Clube Delphi no.81. Rodou direitinho no XP e no Vista. Mas no 2003 não.

// Windows 2003 Server requires StartServiceCtrlDispatcher to be
// called before CoRegisterClassObject, which can be called indirectly
// by Application.Initialize. TServiceApplication.DelayInitialize allows
// Application.Initialize to be called from TService.Main (after
// StartServiceCtrlDispatcher has been called).
//
// Delayed initialization of the Application object may affect
// events which then occur prior to initialization, such as
// TService.OnCreate. It is only recommended if the ServiceApplication
// registers a class object with OLE and is intended for use with
// Windows 2003 Server.
//
//Application.DelayInitialize := True;
//

Esse comentário aparece por default quando se cria um serviço em Delphi. Alguém saberia me dizer o que fazer pra rodar no 2003?


Jogirade

Jogirade

Responder

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar