Click here to Skip to main content
15,898,649 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dynamic ComboBox Pin
Paul Conrad17-Jul-07 18:58
professionalPaul Conrad17-Jul-07 18:58 
GeneralRe: Dynamic ComboBox Pin
T.EDY17-Jul-07 21:08
T.EDY17-Jul-07 21:08 
QuestionSelecting shapes using mouse Pin
cyn817-Jul-07 17:19
cyn817-Jul-07 17:19 
AnswerRe: Selecting shapes using mouse Pin
Ravi Bhavnani17-Jul-07 17:33
professionalRavi Bhavnani17-Jul-07 17:33 
Questiondisplaying shapes that can be selected, drag and drop Pin
cyn817-Jul-07 16:42
cyn817-Jul-07 16:42 
AnswerRe: displaying shapes that can be selected, drag and drop Pin
Ravi Bhavnani17-Jul-07 17:10
professionalRavi Bhavnani17-Jul-07 17:10 
QuestionCommandLineArgs Pin
Xmen Real 17-Jul-07 16:00
professional Xmen Real 17-Jul-07 16:00 
AnswerRe: CommandLineArgs Pin
Luc Pattyn17-Jul-07 17:01
sitebuilderLuc Pattyn17-Jul-07 17:01 
Hi,

in C# (and C and C++ and Java) you cannot have just a backslash in a string literal.
Each occurence of \ will consume the next character and replace them both by one
character; examples \n stands for newline, \t for horizontal tab, ...
and finally \\ stands for backslash

So if you want to write a path literal, it would look like "C:\\temp\\file.txt"
where each \\ represents one backslash.

You can turn off all the above, by prefixing a @ sign like so: @"C:\temp\file.txt"

When a variable is holding a string, it holds the actual characters, not the above
conventions (that apply to string literals only). Hence the command line you obtained
will not contain \\ and is perfect for file I/O operations as is.

Hence your statement "C# needs path with \\" is wrong, it is string literal that
wants this (unless @), but not string variables.

Smile | :)




GeneralRe: CommandLineArgs Pin
Xmen Real 17-Jul-07 17:38
professional Xmen Real 17-Jul-07 17:38 
GeneralRe: CommandLineArgs Pin
Luc Pattyn17-Jul-07 17:56
sitebuilderLuc Pattyn17-Jul-07 17:56 
GeneralRe: CommandLineArgs Pin
Xmen Real 17-Jul-07 18:34
professional Xmen Real 17-Jul-07 18:34 
GeneralRe: CommandLineArgs Pin
PIEBALDconsult17-Jul-07 19:24
mvePIEBALDconsult17-Jul-07 19:24 
GeneralRe: CommandLineArgs Pin
Xmen Real 17-Jul-07 23:06
professional Xmen Real 17-Jul-07 23:06 
AnswerRe: CommandLineArgs Pin
Ravi Bhavnani17-Jul-07 17:11
professionalRavi Bhavnani17-Jul-07 17:11 
QuestioncheckedListBox edit item Pin
bradsucks17-Jul-07 15:14
bradsucks17-Jul-07 15:14 
AnswerRe: checkedListBox edit item Pin
Luis Alonso Ramos17-Jul-07 16:23
Luis Alonso Ramos17-Jul-07 16:23 
QuestionPrevent repaint of a control (aka BeginUpdate, EndUpdate) Pin
r41n©17-Jul-07 14:16
r41n©17-Jul-07 14:16 
AnswerRe: Prevent repaint of a control (aka BeginUpdate, EndUpdate) Pin
Luis Alonso Ramos17-Jul-07 14:23
Luis Alonso Ramos17-Jul-07 14:23 
GeneralRe: Prevent repaint of a control (aka BeginUpdate, EndUpdate) Pin
r41n©18-Jul-07 3:04
r41n©18-Jul-07 3:04 
QuestionWebBrowser control and javascript files Pin
picazo17-Jul-07 12:36
picazo17-Jul-07 12:36 
Questionverify SQLServer access Pin
redivider17-Jul-07 12:19
redivider17-Jul-07 12:19 
AnswerRe: verify SQLServer access Pin
Luis Alonso Ramos17-Jul-07 14:25
Luis Alonso Ramos17-Jul-07 14:25 
GeneralRe: verify SQLServer access Pin
redivider18-Jul-07 4:30
redivider18-Jul-07 4:30 
GeneralRe: verify SQLServer access Pin
Luis Alonso Ramos18-Jul-07 5:29
Luis Alonso Ramos18-Jul-07 5:29 
GeneralRe: verify SQLServer access Pin
redivider18-Jul-07 6:39
redivider18-Jul-07 6:39 

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.