BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how define Dependency of a service at run-time

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
enzo
Guest





PostPosted: Tue May 17, 2005 9:25 am    Post subject: how define Dependency of a service at run-time Reply with quote



I need to setup the servcies dependencies of a TService at run-time-
I have tried like this code but it doesn't work

TDependency * dep;
Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;

also this way isn't working
dep = (TDependency *) Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;


How can I setup correctly the dependencies ?
Regards and thank for the help.

Enzo


Back to top
enzo
Guest





PostPosted: Tue May 17, 2005 10:01 am    Post subject: Re: how define Dependency of a service at run-time Reply with quote



I found the solution as describe in hope this can be usefull to other peole.
I must setup the dependencies inside the BeforeInstall event.
Previously I was wrong because I tried to set it up inside the AfterInstall
event


"enzo" <enzo.arlati (AT) aesys (DOT) it> ha scritto nel messaggio
news:4289b888 (AT) newsgroups (DOT) borland.com...
Quote:
I need to setup the servcies dependencies of a TService at run-time-
I have tried like this code but it doesn't work

TDependency * dep;
Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;

also this way isn't working
dep = (TDependency *) Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;


How can I setup correctly the dependencies ?
Regards and thank for the help.

Enzo





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue May 17, 2005 4:34 pm    Post subject: Re: how define Dependency of a service at run-time Reply with quote




"enzo" <enzo.arlati (AT) aesys (DOT) it> wrote


Quote:
I need to setup the servcies dependencies of a TService at run-time-

Dependancies need to be set up before the service is installed into the SCM.
Why can't you set that up statically at design-time?


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.