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

C / C++ / MFC

 
AnswerRe: How to getting the string of head position?? Pin
Eytukan29-Aug-05 0:04
Eytukan29-Aug-05 0:04 
AnswerRe: How to getting the string of head position?? Pin
Rage29-Aug-05 0:05
professionalRage29-Aug-05 0:05 
AnswerRe: How to getting the string of head position?? Pin
Bob Ciora29-Aug-05 1:19
Bob Ciora29-Aug-05 1:19 
QuestionNeed help....... Pin
Member 216100428-Aug-05 23:36
Member 216100428-Aug-05 23:36 
QuestionBack slashes '\' and SHGetSpecialFolderPath Pin
caykahve28-Aug-05 23:14
caykahve28-Aug-05 23:14 
AnswerRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 0:02
Achim Klein29-Aug-05 0:02 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
caykahve29-Aug-05 0:18
caykahve29-Aug-05 0:18 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 0:43
Achim Klein29-Aug-05 0:43 
Sorry,

I missed the point. If your want to wrap your path name, try something like that:
// puts the passed text into quotation marks
CString getWrapped(const CString& Text, char Esc)
{
	CString buffer;

	int size = Text.GetLength();

	buffer += '"';

	for(int i = 0; i < size; i++)
	{
		char c = Text[i];

		// insert escape character
		if ((c == '"') || (c == Esc))
		{
			buffer += Esc;
		}

		buffer += c;
	}

	buffer += '"';

	return buffer;
}

CString test = getWrapped(path, '\\');


Is this your question?


Regards


We can do no great things, only small things with great love. - Mother Theresa
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
Achim Klein29-Aug-05 0:53
Achim Klein29-Aug-05 0:53 
GeneralRe: Back slashes '\' and SHGetSpecialFolderPath Pin
caykahve29-Aug-05 1:07
caykahve29-Aug-05 1:07 
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 
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 

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.