Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 1:27
Achim Klein29-Aug-05 1:27 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
caykahve29-Aug-05 1:48
caykahve29-Aug-05 1:48 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 1:57
Achim Klein29-Aug-05 1:57 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 2:21
Achim Klein29-Aug-05 2:21 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
caykahve29-Aug-05 3:17
caykahve29-Aug-05 3:17 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 3:39
Achim Klein29-Aug-05 3:39 
NewsRe: Back slashes '\' and SHGetSpecialFolderPath Pin
caykahve29-Aug-05 4:06
caykahve29-Aug-05 4:06 
AnswerRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Jose Lamas Rios29-Aug-05 5:47
Jose Lamas Rios29-Aug-05 5:47 
caykahve wrote:
and the message box says:
C:\Program Files

I need to add something at the end of this string and then i try to use it in another function which needs the paths in double back slashes like:
"C:\\Program Files"

Then I try to do a conversion in PFPath in order to double the backslashes to change from
"C:\Program Files" to "C:\Program Files"


You don't actually need any conversion. The double back slash is needed only when you are writing a string literal in your code. That's because the back slash is a escape character (used in combinations like \t, \r and \n, to represent a tab, carrier return, and line feed characters), when what you want is an actual back slash character, you need to type it twice. However, the double back slash pair represents one (single) back slash character in memory.



--
jlr
http://jlamas.blogspot.com/[^]
QuestionSQL SERVER DATABASE Pin
sirtimid28-Aug-05 23:09
sirtimid28-Aug-05 23:09 
QuestionDefault Push Button Pin
Nishad S28-Aug-05 23:03
Nishad S28-Aug-05 23:03 
AnswerRe: Default Push Button Pin
Marc Soleda28-Aug-05 23:12
Marc Soleda28-Aug-05 23:12 
GeneralRe: Default Push Button Pin
Marc Soleda28-Aug-05 23:26
Marc Soleda28-Aug-05 23:26 
GeneralRe: Default Push Button Pin
Nishad S28-Aug-05 23:34
Nishad S28-Aug-05 23:34 
GeneralRe: Default Push Button Pin
Marc Soleda29-Aug-05 0:30
Marc Soleda29-Aug-05 0:30 
AnswerRe: Default Push Button Pin
John R. Shaw28-Aug-05 23:15
John R. Shaw28-Aug-05 23:15 
AnswerRe: Default Push Button Pin
toxcct29-Aug-05 1:37
toxcct29-Aug-05 1:37 
Questionhow to load dialog resource from a dll Pin
BK Pradeep28-Aug-05 22:18
BK Pradeep28-Aug-05 22:18 
AnswerRe: how to load dialog resource from a dll Pin
BK Pradeep28-Aug-05 22:27
BK Pradeep28-Aug-05 22:27 
GeneralRe: how to load dialog resource from a dll Pin
Weiye Chen31-Aug-05 15:00
Weiye Chen31-Aug-05 15:00 
AnswerRe: how to load dialog resource from a dll Pin
Weiye Chen28-Aug-05 23:02
Weiye Chen28-Aug-05 23:02 
QuestionPlz Help : about selection of Date Pin
parims28-Aug-05 21:22
parims28-Aug-05 21:22 
AnswerRe: Plz Help : about selection of Date Pin
Marc Soleda28-Aug-05 22:08
Marc Soleda28-Aug-05 22:08 
General[Message Deleted] Pin
Marc Soleda29-Aug-05 0:20
Marc Soleda29-Aug-05 0:20 
AnswerRe: Plz Help : about selection of Date Pin
Marc Soleda29-Aug-05 0:31
Marc Soleda29-Aug-05 0:31 
QuestionHow to capture KeyDown event in Dialogue based MFC Application ? Pin
Amarelia28-Aug-05 20:41
Amarelia28-Aug-05 20:41 

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.