Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: locate header files? Pin
Ryan Binns23-Aug-04 18:18
Ryan Binns23-Aug-04 18:18 
AnswerRe: locate header files? Pin
Henry miller24-Aug-04 3:27
Henry miller24-Aug-04 3:27 
Generalaccess the parallel port Pin
X204023-Aug-04 12:13
X204023-Aug-04 12:13 
GeneralRe: access the parallel port Pin
Christian Graus23-Aug-04 12:27
protectorChristian Graus23-Aug-04 12:27 
Generallog method-call and time on PocketPc Pin
Anonymous23-Aug-04 12:08
Anonymous23-Aug-04 12:08 
GeneralRe: log method-call and time on PocketPc Pin
Christian Graus23-Aug-04 12:25
protectorChristian Graus23-Aug-04 12:25 
GeneralParallel port Pin
Christian Graus23-Aug-04 10:44
protectorChristian Graus23-Aug-04 10:44 
GeneralCFile::modeCreate fails when a path doesn't exist Pin
BlackDice23-Aug-04 10:26
BlackDice23-Aug-04 10:26 
I'm creating a file from the binary data stored in an image field in a database. When the user clicks on the filename in my listbox, I read the bytes from the database, and create the file, then do a shellexecute() to open the file. All this works fine, except I use GetModuleFileName to create a path to a folder called 'temp' in the same directory as the exe. If the 'temp' folder doesn't already exist, my app crashes, but if the folder already exists, everything is fine. Any help would be appreciated.

I thought by specifying CFile::modeCreate as one of the flags it would create the directory as well as the file. Apparently not.

[insert witty comment here]

bdiamond Sleepy | :zzz:
GeneralRe: CFile::modeCreate fails when a path doesn't exist Pin
David Crow23-Aug-04 10:35
David Crow23-Aug-04 10:35 
GeneralRe: CFile::modeCreate fails when a path doesn't exist Pin
David Salter23-Aug-04 11:09
David Salter23-Aug-04 11:09 
Generallinker error (again) Pin
alex.barylski23-Aug-04 8:40
alex.barylski23-Aug-04 8:40 
GeneralCEdit & carriage return-line feeds Pin
asmatic23-Aug-04 8:40
asmatic23-Aug-04 8:40 
GeneralRe: CEdit & carriage return-line feeds Pin
alex.barylski23-Aug-04 8:45
alex.barylski23-Aug-04 8:45 
GeneralExcel automation Pin
Anonymous23-Aug-04 8:14
Anonymous23-Aug-04 8:14 
GeneralRe: Excel automation Pin
Ryan Binns23-Aug-04 18:24
Ryan Binns23-Aug-04 18:24 
GeneralMenu resource with condition Pin
The Bug23-Aug-04 8:04
The Bug23-Aug-04 8:04 
GeneralNon resizing window Pin
doctorpi23-Aug-04 7:40
doctorpi23-Aug-04 7:40 
GeneralRe: Non resizing window Pin
The Bug23-Aug-04 8:06
The Bug23-Aug-04 8:06 
GeneralRe: Non resizing window Pin
doctorpi23-Aug-04 8:17
doctorpi23-Aug-04 8:17 
GeneralRe: Non resizing window Pin
Dragos1979200223-Aug-04 8:39
Dragos1979200223-Aug-04 8:39 
GeneralRe: Non resizing window Pin
Omar.Pessoa20-Nov-11 23:10
Omar.Pessoa20-Nov-11 23:10 
GeneralRe: Non resizing window Pin
Chuck O'Toole21-Nov-11 3:55
Chuck O'Toole21-Nov-11 3:55 
GeneralRe: Non resizing window Pin
Omar.Pessoa21-Nov-11 4:34
Omar.Pessoa21-Nov-11 4:34 
GeneralStoring binary data in SQLServer Field Pin
BlackDice23-Aug-04 6:47
BlackDice23-Aug-04 6:47 
GeneralRe: Storing binary data in SQLServer Field Pin
Jeremy Falcon23-Aug-04 6:58
professionalJeremy Falcon23-Aug-04 6:58 

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.