Click here to Skip to main content
15,892,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: OOP - Multiple Inheritance Pin
John Fisher11-Mar-04 16:24
John Fisher11-Mar-04 16:24 
GeneralRe: OOP - Multiple Inheritance Pin
Michael Flanakin17-Mar-04 19:52
Michael Flanakin17-Mar-04 19:52 
Question Determine which users have a file locked? Pin
Member 59390311-Mar-04 6:54
Member 59390311-Mar-04 6:54 
AnswerRe: Determine which users have a file locked? Pin
Heath Stewart12-Mar-04 3:26
protectorHeath Stewart12-Mar-04 3:26 
GeneralRe: Determine which users have a file locked? Pin
Member 59390312-Mar-04 3:34
Member 59390312-Mar-04 3:34 
QuestionRe: Determine which users have a file locked? Pin
Martin#18-Jun-07 0:16
Martin#18-Jun-07 0:16 
Generalthis.ServiceName Pin
CraigSch11-Mar-04 6:42
CraigSch11-Mar-04 6:42 
GeneralRe: this.ServiceName Pin
John Fisher11-Mar-04 16:32
John Fisher11-Mar-04 16:32 
The problem with using OnStart's parameters is that the SCM is already starting the service at that point, and must have discovered the name beforehand.

My company currently has a few exes which we run as multiple services on the same machine. Our design goals caused us to end up with multiple copies of the exe (different file names). Each are registered individually as services, which includes the exe name as part of the name of the service. With this setup, the service installer and the service itself can both determine the proper service name by detecting the name of the running executable.

You may be able to modify the installer to check for certain parameters at the time that the service is registered, then pass those same parameters to the exe when the service is started. It doesn't seem impossible, but the key is to distinguish between services at installation time.

John

"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

GeneralBindtoObject translation Issues Pin
Tristan Rhodes11-Mar-04 5:39
Tristan Rhodes11-Mar-04 5:39 
General- Solved. - ref GUID? Pin
Tristan Rhodes12-Mar-04 1:02
Tristan Rhodes12-Mar-04 1:02 
GeneralRe: - Solved. - ref GUID? Pin
Mike Dimmick12-Mar-04 2:25
Mike Dimmick12-Mar-04 2:25 
GeneralRe: - Solved. - ref GUID? Pin
Tristan Rhodes12-Mar-04 3:20
Tristan Rhodes12-Mar-04 3:20 
Generalfill a textbox from a dataset Pin
krisman11-Mar-04 4:43
krisman11-Mar-04 4:43 
GeneralRe: fill a textbox from a dataset Pin
Guinness4Strength11-Mar-04 4:47
Guinness4Strength11-Mar-04 4:47 
GeneralRe: fill a textbox from a dataset Pin
krisman11-Mar-04 5:28
krisman11-Mar-04 5:28 
GeneralRe: fill a textbox from a dataset Pin
partyganger11-Mar-04 5:56
partyganger11-Mar-04 5:56 
GeneralRe: fill a textbox from a dataset Pin
Edbert P11-Mar-04 16:22
Edbert P11-Mar-04 16:22 
GeneralRe: fill a textbox from a dataset Pin
krisman15-Mar-04 2:56
krisman15-Mar-04 2:56 
GeneralRe: fill a textbox from a dataset Pin
Edbert P15-Mar-04 11:11
Edbert P15-Mar-04 11:11 
GeneralRe: fill a textbox from a dataset Pin
krisman16-Mar-04 2:51
krisman16-Mar-04 2:51 
GeneralWindows XP and Shell Pin
Guinness4Strength11-Mar-04 4:11
Guinness4Strength11-Mar-04 4:11 
GeneralRe: Windows XP and Shell Pin
Mike Dimmick12-Mar-04 2:28
Mike Dimmick12-Mar-04 2:28 
Generalprinting Pin
cmarmr11-Mar-04 4:01
cmarmr11-Mar-04 4:01 
GeneralRe: printing Pin
Not Active11-Mar-04 4:30
mentorNot Active11-Mar-04 4:30 
QuestionLock a file? Pin
Anonymous11-Mar-04 3:29
Anonymous11-Mar-04 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.