Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading a file Pin
Andrew Admire27-May-05 3:41
Andrew Admire27-May-05 3:41 
GeneralAddSlashes Pin
talkster526-May-05 3:42
talkster526-May-05 3:42 
GeneralRe: AddSlashes Pin
David Crow26-May-05 3:55
David Crow26-May-05 3:55 
GeneralRe: AddSlashes Pin
talkster526-May-05 4:16
talkster526-May-05 4:16 
GeneralRe: AddSlashes Pin
John M. Drescher26-May-05 4:26
John M. Drescher26-May-05 4:26 
GeneralRe: AddSlashes Pin
talkster526-May-05 4:30
talkster526-May-05 4:30 
GeneralRe: AddSlashes Pin
Ravi Bhavnani26-May-05 4:36
professionalRavi Bhavnani26-May-05 4:36 
GeneralRe: AddSlashes Pin
John M. Drescher26-May-05 4:48
John M. Drescher26-May-05 4:48 
You should not need to do so. That is why I was confused. \\ is only needed if the string is compiled into your program or you are using a UNC server name such as \\mypc\share\file.txt instead of c:\file.txt. The reason why you need an extra slash in a compiled string is that \ is the escape character in c. The character that comes after the \ is gobbled up and converted into a code \n = new line \r = carrage return \t = tab. But how then do I use a \ in a string constant when I really want a \. The language writers added \\ = \ to allow this. When you read your data from any other method other than compiled into these conversions do not occur so you never need \\ in any type of file.

John
GeneralRe: AddSlashes Pin
toxcct26-May-05 5:02
toxcct26-May-05 5:02 
GeneralRe: AddSlashes Pin
David Crow26-May-05 4:50
David Crow26-May-05 4:50 
GeneralRe: AddSlashes Pin
toxcct26-May-05 4:27
toxcct26-May-05 4:27 
GeneralRe: AddSlashes Pin
talkster526-May-05 8:12
talkster526-May-05 8:12 
GeneralVideo Pin
Usman Tasleem Akshaf26-May-05 3:29
Usman Tasleem Akshaf26-May-05 3:29 
GeneralRe: Video Pin
Ravi Bhavnani26-May-05 4:39
professionalRavi Bhavnani26-May-05 4:39 
GeneralRe: Video Pin
Usman Tasleem Akshaf26-May-05 7:04
Usman Tasleem Akshaf26-May-05 7:04 
GeneralRe: Video Pin
Ravi Bhavnani26-May-05 10:57
professionalRavi Bhavnani26-May-05 10:57 
GeneralRe: Video Pin
Usman Tasleem Akshaf26-May-05 23:58
Usman Tasleem Akshaf26-May-05 23:58 
GeneralRe: Video Pin
FlyingTinman27-May-05 8:40
FlyingTinman27-May-05 8:40 
GeneralRe: Video Pin
Usman Tasleem Akshaf28-May-05 6:51
Usman Tasleem Akshaf28-May-05 6:51 
GeneralRe: Video Pin
FlyingTinman31-May-05 9:33
FlyingTinman31-May-05 9:33 
Generalhelp creating. Pin
scoroop26-May-05 3:07
scoroop26-May-05 3:07 
GeneralRe: help creating. Pin
David Crow26-May-05 3:38
David Crow26-May-05 3:38 
GeneralGraphical Active X Control Operation Pin
jerry1211a26-May-05 2:03
jerry1211a26-May-05 2:03 
GeneralMFC - Disabled buttons (not CDialog) Pin
gnilk26-May-05 1:01
gnilk26-May-05 1:01 
GeneralRe: MFC - Disabled buttons (not CDialog) Pin
toxcct26-May-05 1:10
toxcct26-May-05 1:10 

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.