Click here to Skip to main content
15,888,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Run-Time Routines and .NET Framework Equivalents Pin
leppie16-Jul-03 7:33
leppie16-Jul-03 7:33 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 0:30
Xiangyang Liu 刘向阳15-Jul-03 0:30 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 0:55
Xiangyang Liu 刘向阳15-Jul-03 0:55 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:41
Xiangyang Liu 刘向阳15-Jul-03 1:41 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:50
Xiangyang Liu 刘向阳15-Jul-03 1:50 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 1:59
Xiangyang Liu 刘向阳15-Jul-03 1:59 
GeneralRe: Windows Service Pin
Xiangyang Liu 刘向阳15-Jul-03 2:04
Xiangyang Liu 刘向阳15-Jul-03 2:04 
GeneralRe: Windows Service Pin
Heath Stewart15-Jul-03 5:15
protectorHeath Stewart15-Jul-03 5:15 
No, argc is 3 and argv[0] is actually the application name. argv[1] and argv[2] are param1 and param2, respectively. As a side note, .NET does not pass the application as the first argument. Some languages do, some languages don't.

Besides, parameters aren't passed to the Windows Service in the entry point (commonly referred to as main). In .NET, these are passed in OnStart(string[] args).

If I were you, just read settings from the app's config file (named MyServer.exe.config - just append ".config" to your service application and put them in the same directory). You could write your own IConfigurationSectionHandler, or just use the provided <appSettings>, which gives you a simple key-value pair. It's just an XML file so it's easy to edit (both manually and programmatically).

 

Reminiscent of my younger years...
10 LOAD "SCISSORS"
20 RUN

GeneralRe: Windows Service Pin
Heath Stewart15-Jul-03 8:46
protectorHeath Stewart15-Jul-03 8:46 
GeneralRe: Windows Service Pin
Heath Stewart15-Jul-03 12:44
protectorHeath Stewart15-Jul-03 12:44 
GeneralRe: Windows Service Pin
Heath Stewart16-Jul-03 9:04
protectorHeath Stewart16-Jul-03 9:04 
GeneralRe: Windows Service Pin
Heath Stewart16-Jul-03 13:26
protectorHeath Stewart16-Jul-03 13:26 
GeneralRe: Windows Service Pin
Valeria Bogdevich17-Jul-03 4:46
Valeria Bogdevich17-Jul-03 4:46 
GeneralDirectShow .NET HELP!!! Pin
Brian JR14-Jul-03 8:15
Brian JR14-Jul-03 8:15 
GeneralRe: DirectShow .NET HELP!!! Pin
Heath Stewart15-Jul-03 8:50
protectorHeath Stewart15-Jul-03 8:50 
GeneralRe: DirectShow .NET HELP!!! Pin
Brian JR15-Jul-03 17:50
Brian JR15-Jul-03 17:50 
GeneralRe: DirectShow .NET HELP!!! Pin
J. Dunlap15-Jul-03 18:03
J. Dunlap15-Jul-03 18:03 
GeneralRe: DirectShow .NET HELP!!! Pin
Brian JR16-Jul-03 8:58
Brian JR16-Jul-03 8:58 
GeneralRe: DirectShow .NET HELP!!! Pin
J. Dunlap17-Jul-03 8:41
J. Dunlap17-Jul-03 8:41 
GeneralRe: DirectShow .NET HELP!!! Pin
Brian JR17-Jul-03 8:57
Brian JR17-Jul-03 8:57 
GeneralRe: DirectShow .NET HELP!!! Pin
J. Dunlap17-Jul-03 11:50
J. Dunlap17-Jul-03 11:50 
GeneralRe: DirectShow .NET HELP!!! Pin
Heath Stewart16-Jul-03 4:56
protectorHeath Stewart16-Jul-03 4:56 
GeneralRe: DirectShow .NET HELP!!! Pin
Brian JR16-Jul-03 9:10
Brian JR16-Jul-03 9:10 
GeneralRe: DirectShow .NET HELP!!! Pin
Heath Stewart16-Jul-03 9:21
protectorHeath Stewart16-Jul-03 9:21 
GeneralRe: DirectShow .NET HELP!!! Pin
Brian JR16-Jul-03 15:40
Brian JR16-Jul-03 15:40 

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.