Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: Learning C# for a beginner Pin
Richard Andrew x6424-Aug-12 10:07
professionalRichard Andrew x6424-Aug-12 10:07 
AnswerRe: Learning C# for a beginner Pin
wizardzz24-Aug-12 9:51
wizardzz24-Aug-12 9:51 
GeneralRe: Learning C# for a beginner Pin
Diego Carrion24-Aug-12 10:06
Diego Carrion24-Aug-12 10:06 
GeneralRe: Learning C# for a beginner Pin
wizardzz24-Aug-12 10:12
wizardzz24-Aug-12 10:12 
GeneralRe: Learning C# for a beginner Pin
Diego Carrion24-Aug-12 10:35
Diego Carrion24-Aug-12 10:35 
GeneralRe: Learning C# for a beginner Pin
wizardzz24-Aug-12 10:42
wizardzz24-Aug-12 10:42 
GeneralRe: Learning C# for a beginner Pin
Diego Carrion24-Aug-12 11:20
Diego Carrion24-Aug-12 11:20 
Questionpass paramters to C# 2008 app Pin
sc steinhayse24-Aug-12 5:51
sc steinhayse24-Aug-12 5:51 
I would like to know how to pass values to a C# 2008 console application that my small company obtained from a contract shop.
My goal is to be able to step though (debug) the code so that I can understand the application.

Right now I have been able to compile the application and set break points to see where the problem lies. The application starts in the main method and stops executing when it is looking for 2 parameters that need to be passed.

Right now to run the application I click on a windows command file that looks like the following:
Start .\samclt\bin\Debug\samcl.exe encrypted_value https://test/test/testWebService 1 ITEM

The first value is 'encrypted_value' is an encrypted value, the second parameter is used to call a webservice named testWebService and the values of 1 and ITEM are passed to the web service.


Due to what I stated above, I have the following two questions:

1. When I want to start the C# application from a debug mode, how can I pass the two required parameters to the application and let the application 'see' parameter values and have access to the values?

2. When I start the C# application from the command prompt, how can I pass the two required parameters to the application and let the application 'see' parameter values and have access to the values?

modified 24-Aug-12 12:29pm.

AnswerRe: pass paramters to C# 2008 app Pin
Wes Aday24-Aug-12 6:02
professionalWes Aday24-Aug-12 6:02 
AnswerRe: pass paramters to C# 2008 app Pin
Richard MacCutchan24-Aug-12 7:29
mveRichard MacCutchan24-Aug-12 7:29 
AnswerRe: pass paramters to C# 2008 app Pin
wizardzz24-Aug-12 10:14
wizardzz24-Aug-12 10:14 
QuestionDealing with SQL Server Table Column Name with Special Character Pin
Ankitaaguggi24-Aug-12 5:37
Ankitaaguggi24-Aug-12 5:37 
AnswerRe: Dealing with SQL Server Table Column Name with Special Character Pin
Dave Kreskowiak24-Aug-12 6:18
mveDave Kreskowiak24-Aug-12 6:18 
AnswerRe: Dealing with SQL Server Table Column Name with Special Character Pin
jschell24-Aug-12 8:46
jschell24-Aug-12 8:46 
QuestionC# 2010 standard output Pin
sc steinhayse24-Aug-12 3:44
sc steinhayse24-Aug-12 3:44 
AnswerRe: C# 2010 standard output Pin
sjelen24-Aug-12 4:06
professionalsjelen24-Aug-12 4:06 
AnswerRe: C# 2010 standard output Pin
Dave Kreskowiak24-Aug-12 4:34
mveDave Kreskowiak24-Aug-12 4:34 
GeneralRe: C# 2010 standard output Pin
sc steinhayse24-Aug-12 6:01
sc steinhayse24-Aug-12 6:01 
GeneralRe: C# 2010 standard output Pin
Dave Kreskowiak24-Aug-12 6:15
mveDave Kreskowiak24-Aug-12 6:15 
QuestionSQL Connection problem in Windows Service asp.net c# Pin
Member 799263524-Aug-12 0:22
Member 799263524-Aug-12 0:22 
AnswerCross post Pin
Pete O'Hanlon24-Aug-12 0:35
mvePete O'Hanlon24-Aug-12 0:35 
AnswerRe: SQL Connection problem in Windows Service asp.net c# Pin
Vijay Selvaraj26-Aug-12 21:56
Vijay Selvaraj26-Aug-12 21:56 
QuestionC# 2010 parse a file Pin
classy_dog23-Aug-12 17:49
classy_dog23-Aug-12 17:49 
AnswerRe: C# 2010 parse a file Pin
pramod.hegde23-Aug-12 20:05
professionalpramod.hegde23-Aug-12 20:05 
AnswerRe: C# 2010 parse a file Pin
wizardzz24-Aug-12 9:54
wizardzz24-Aug-12 9:54 

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.