Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 12:25
gurucplusplus24-Apr-07 12:25 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 12:42
Mark Salsbery24-Apr-07 12:42 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 13:25
gurucplusplus24-Apr-07 13:25 
QuestionThe big leap to Vista and Visual Studio 2005 Pin
hcatech24-Apr-07 6:07
hcatech24-Apr-07 6:07 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
David Crow24-Apr-07 6:18
David Crow24-Apr-07 6:18 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn24-Apr-07 8:35
sitebuilderMichael Dunn24-Apr-07 8:35 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
hcatech25-Apr-07 3:48
hcatech25-Apr-07 3:48 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn25-Apr-07 13:52
sitebuilderMichael Dunn25-Apr-07 13:52 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
cp987624-Apr-07 17:51
cp987624-Apr-07 17:51 
QuestionDLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 6:04
Peter Saint24-Apr-07 6:04 
AnswerRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 7:59
Mark Salsbery24-Apr-07 7:59 
AnswerRe: DLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 8:32
Peter Saint24-Apr-07 8:32 
GeneralRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 8:55
Mark Salsbery24-Apr-07 8:55 
Questionplease help me(Networking)?!!! Pin
dSolariuM24-Apr-07 4:42
dSolariuM24-Apr-07 4:42 
QuestionRe: please help me(Networking)?!!! Pin
David Crow24-Apr-07 4:52
David Crow24-Apr-07 4:52 
QuestionAppropriate file buffer size Pin
Dustin Henry24-Apr-07 4:30
Dustin Henry24-Apr-07 4:30 
QuestionRe: Appropriate file buffer size Pin
David Crow24-Apr-07 4:32
David Crow24-Apr-07 4:32 
AnswerRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 4:46
Dustin Henry24-Apr-07 4:46 
QuestionRe: Appropriate file buffer size Pin
David Crow24-Apr-07 4:50
David Crow24-Apr-07 4:50 
AnswerRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 4:55
Dustin Henry24-Apr-07 4:55 
GeneralRe: Appropriate file buffer size Pin
David Crow24-Apr-07 5:02
David Crow24-Apr-07 5:02 
QuestionRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 5:05
Dustin Henry24-Apr-07 5:05 
AnswerRe: Appropriate file buffer size Pin
David Crow24-Apr-07 5:16
David Crow24-Apr-07 5:16 
GeneralRe: Appropriate file buffer size Pin
Dustin Henry24-Apr-07 5:22
Dustin Henry24-Apr-07 5:22 
Questionbrain dead question : CFileDialog initial Dir. Pin
Maximilien24-Apr-07 4:01
Maximilien24-Apr-07 4:01 
(I feel dumb this morning, really, really dumb; you have the right to giggle )

I'm trying to set the initial dir of a CFileDialog to an existing path.

if I do this it works; but the path is not hardcoded like that.
CString sInitialPath("c:\\max\\");
CFileDialog dlg( FALSE, NULL, "toto.ext");
dlg.GetOFN().lpstrInitialDir = sInitialDir;


The path is taken from an Edit Box.

CString sInitialPath;
m_EditBox.GetWindowText( sInitialPath );
CFileDialog dlg( FALSE, NULL, "toto.ext");
dlg.GetOFN().lpstrInitialDir = sInitialDir;


And this does not work because the string contains single backslash ( c:\max ) and letters will be "escaped" out of the string.

There must be a better way than manually add backslash to the string ?

Is there a default "cleanup" function that will do it ?

Thanks.

(again you can have a laugh.)




Maximilien Lincourt
Your Head A Splode - Strong Bad

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.