Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: String Table Pin
David Crow8-Nov-05 7:37
David Crow8-Nov-05 7:37 
GeneralRe: String Table Pin
TUMB8-Nov-05 7:42
TUMB8-Nov-05 7:42 
GeneralRe: String Table Pin
David Crow8-Nov-05 7:52
David Crow8-Nov-05 7:52 
QuestionControl Lines of the Printer Port Pin
sweep1238-Nov-05 6:25
sweep1238-Nov-05 6:25 
AnswerRe: Control Lines of the Printer Port Pin
douglasjordan8-Nov-05 9:36
douglasjordan8-Nov-05 9:36 
GeneralRe: Control Lines of the Printer Port Pin
Blake Miller9-Nov-05 4:46
Blake Miller9-Nov-05 4:46 
QuestionCreate a directory Pin
Rage8-Nov-05 6:05
professionalRage8-Nov-05 6:05 
AnswerRe: Create a directory Pin
Bob Ciora8-Nov-05 6:24
Bob Ciora8-Nov-05 6:24 
The documentation for CreateDirectory[^] does mention that it will only create the final directory in the specified path (c.f. the comments for ERROR_PATH_NOT_FOUND).

There is a suggestion at the MSDN site to use the SHCreateDirectoryEx function. However, the documentation for this function would indicate that it won't work on earlier versions of Windows.

The alternative is to parse your path string (for the '\\' or '/' characters) and create the intermediate directories as well. You can use CString to locate the first occurrence of the character, do a SetCurrentDirectory and, if that fails, CreateDirectory. Repeat this process until you've parsed all subdirectories in the path string.



Bob Ciora
Questioncursor in textbox Pin
controlsense8-Nov-05 6:01
controlsense8-Nov-05 6:01 
AnswerRe: cursor in textbox Pin
David Crow8-Nov-05 7:46
David Crow8-Nov-05 7:46 
GeneralRe: cursor in textbox Pin
controlsense8-Nov-05 8:12
controlsense8-Nov-05 8:12 
QuestionBluetooth SDP in localhost Pin
inf0098-Nov-05 6:00
inf0098-Nov-05 6:00 
QuestionAdvice on where to start Pin
cRaCKh0rN8-Nov-05 5:29
cRaCKh0rN8-Nov-05 5:29 
AnswerRe: Advice on where to start Pin
Chris Losinger8-Nov-05 5:42
professionalChris Losinger8-Nov-05 5:42 
GeneralRe: Advice on where to start Pin
cRaCKh0rN8-Nov-05 5:47
cRaCKh0rN8-Nov-05 5:47 
GeneralRe: Advice on where to start Pin
Bob Stanneveld8-Nov-05 5:54
Bob Stanneveld8-Nov-05 5:54 
GeneralRe: Advice on where to start Pin
Chris Losinger8-Nov-05 5:59
professionalChris Losinger8-Nov-05 5:59 
GeneralRe: Advice on where to start Pin
cRaCKh0rN8-Nov-05 10:08
cRaCKh0rN8-Nov-05 10:08 
AnswerRe: Advice on where to start Pin
LighthouseJ8-Nov-05 19:43
LighthouseJ8-Nov-05 19:43 
QuestionBeginner Programmer, Got some ideas for me? Pin
Monkey De Lufy: Pirate King8-Nov-05 4:47
Monkey De Lufy: Pirate King8-Nov-05 4:47 
AnswerRe: Beginner Programmer, Got some ideas for me? Pin
David Crow8-Nov-05 4:50
David Crow8-Nov-05 4:50 
QuestionDataGrid Pin
rsw18-Nov-05 4:38
rsw18-Nov-05 4:38 
QuestionCRC-16 Convert to vb.Net Pin
RichardBerry8-Nov-05 4:33
RichardBerry8-Nov-05 4:33 
Questionshowing a bitmap on a CStatic in a toolbar Pin
Mircea Grelus8-Nov-05 4:33
Mircea Grelus8-Nov-05 4:33 
Questionvirtual detstruct question when multi derived Pin
followait8-Nov-05 4:23
followait8-Nov-05 4:23 

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.