Click here to Skip to main content
16,004,828 members
Home / Discussions / C#
   

C#

 
AnswerRe: Easy Question Pin
Judah Gabriel Himango16-Jul-08 14:11
sponsorJudah Gabriel Himango16-Jul-08 14:11 
AnswerRe: Easy Question Pin
PIEBALDconsult17-Jul-08 5:23
mvePIEBALDconsult17-Jul-08 5:23 
QuestionTime Zone map Pin
Dr. Kelwin16-Jul-08 12:39
Dr. Kelwin16-Jul-08 12:39 
QuestionIs it possible to add import dll during runtime? Pin
pnpfriend16-Jul-08 10:29
pnpfriend16-Jul-08 10:29 
AnswerRe: Is it possible to add import dll during runtime? Pin
Luc Pattyn16-Jul-08 10:58
sitebuilderLuc Pattyn16-Jul-08 10:58 
AnswerRe: Is it possible to add import dll during runtime? Pin
dan!sh 16-Jul-08 19:04
professional dan!sh 16-Jul-08 19:04 
AnswerRe: Is it possible to add import dll during runtime? Pin
PIEBALDconsult17-Jul-08 17:28
mvePIEBALDconsult17-Jul-08 17:28 
QuestionRules for command line parsing Pin
Alan N16-Jul-08 9:40
Alan N16-Jul-08 9:40 
Hi,
I spent a bit of time yesterday debugging a previously working app and eventually traced my problem down to the default handling of command line arguments.

So, assume a console app using the standard Main method of

static int Main(string[] args).

If I format a command line argument as say

"\DataFiles"

then I get the expected args[0] of \DataFiles which has had the quotation marks stripped off.

If I pass \ then I get args[0] of \ , again as expected.

However if my command line is quoted and has a final backslash then it all goes a bit wrong.

So "\DataFiles\" turns up in args[0] as \DataFiles" from which it appears that the \ is being interpreted as an escape character.

Just for a bit of fun I passed in the command line argument "\"\"" to confirm the hypothesis and got "" in args[0] as predicted.

I know there are plenty of command line parser classes which will do the job properly but can anyone explain the rules for the inbuilt parsing as I can't find any reference to the rather odd action that I have found.

Alan.
AnswerRe: Rules for command line parsing Pin
Luc Pattyn16-Jul-08 10:11
sitebuilderLuc Pattyn16-Jul-08 10:11 
GeneralRe: Rules for command line parsing Pin
Alan N17-Jul-08 6:40
Alan N17-Jul-08 6:40 
GeneralRe: Rules for command line parsing Pin
Luc Pattyn17-Jul-08 7:28
sitebuilderLuc Pattyn17-Jul-08 7:28 
Questionbuilding a program to find words in a list of letters Pin
davidallenmorse16-Jul-08 8:04
davidallenmorse16-Jul-08 8:04 
AnswerRe: building a program to find words in a list of letters Pin
Paul Conrad16-Jul-08 9:37
professionalPaul Conrad16-Jul-08 9:37 
GeneralRe: building a program to find words in a list of letters Pin
nelsonpaixao16-Jul-08 12:36
nelsonpaixao16-Jul-08 12:36 
GeneralRe: building a program to find words in a list of letters Pin
davidallenmorse16-Jul-08 15:42
davidallenmorse16-Jul-08 15:42 
GeneralRe: building a program to find words in a list of letters Pin
nelsonpaixao17-Jul-08 13:08
nelsonpaixao17-Jul-08 13:08 
QuestionJava networking Code - conversion to C# Pin
DwR16-Jul-08 7:50
DwR16-Jul-08 7:50 
AnswerRe: Java networking Code - conversion to C# Pin
led mike16-Jul-08 11:04
led mike16-Jul-08 11:04 
GeneralRe: Java networking Code - conversion to C# Pin
DwR16-Jul-08 12:59
DwR16-Jul-08 12:59 
GeneralRe: Java networking Code - conversion to C# Pin
led mike17-Jul-08 7:07
led mike17-Jul-08 7:07 
AnswerRe: Java networking Code - conversion to C# Pin
Judah Gabriel Himango16-Jul-08 11:15
sponsorJudah Gabriel Himango16-Jul-08 11:15 
QuestionData Synchronization and Retrieval Pin
CodingYoshi16-Jul-08 5:41
CodingYoshi16-Jul-08 5:41 
AnswerRe: Data Synchronization and Retrieval Pin
nelsonpaixao17-Jul-08 14:17
nelsonpaixao17-Jul-08 14:17 
GeneralRe: Data Synchronization and Retrieval Pin
CodingYoshi19-Jul-08 8:47
CodingYoshi19-Jul-08 8:47 
QuestionPostMessage # How to pass Message back to Caller EXE?? Pin
ImNAM16-Jul-08 5:19
ImNAM16-Jul-08 5:19 

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.