Click here to Skip to main content
15,923,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: fstream problem Pin
CPallini25-Jan-07 9:46
mveCPallini25-Jan-07 9:46 
QuestionTest if a FILE is open Pin
RomTibi25-Jan-07 7:07
RomTibi25-Jan-07 7:07 
AnswerRe: Test if a FILE is open Pin
Mark Salsbery25-Jan-07 7:40
Mark Salsbery25-Jan-07 7:40 
AnswerRe: Test if a FILE is open Pin
#realJSOP25-Jan-07 8:21
professional#realJSOP25-Jan-07 8:21 
GeneralRe: Test if a FILE is open Pin
Blake Miller25-Jan-07 8:35
Blake Miller25-Jan-07 8:35 
GeneralRe: Test if a FILE is open Pin
#realJSOP25-Jan-07 10:56
professional#realJSOP25-Jan-07 10:56 
QuestionRe: Test if a FILE is open Pin
Mark Salsbery25-Jan-07 11:04
Mark Salsbery25-Jan-07 11:04 
AnswerRe: Test if a FILE is open Pin
Blake Miller25-Jan-07 11:15
Blake Miller25-Jan-07 11:15 
That was my point exactly.

Usually, the CRT functions are an encpasulation of the Win32 API, and since I had already loaded the CRT source code onto my systen, I went and looked at what _access does, and it only relies upon GetFileAttributes, which has nothing to do with determining if a file is open or not.

Your solution with the CreateFile call is closer to what is required.

GeneralRe: Test if a FILE is open Pin
#realJSOP25-Jan-07 11:55
professional#realJSOP25-Jan-07 11:55 
AnswerRe: Test if a FILE is open Pin
#realJSOP25-Jan-07 11:56
professional#realJSOP25-Jan-07 11:56 
GeneralRe: Test if a FILE is open Pin
Mark Salsbery25-Jan-07 12:06
Mark Salsbery25-Jan-07 12:06 
QuestionBurning CDs Pin
RedDragon2k25-Jan-07 6:02
RedDragon2k25-Jan-07 6:02 
AnswerRe: Burning CDs Pin
David Crow25-Jan-07 6:21
David Crow25-Jan-07 6:21 
AnswerRe: Burning CDs Pin
Hamid_RT25-Jan-07 21:00
Hamid_RT25-Jan-07 21:00 
QuestionHow to initialize a 2D array correctly? :confused: Pin
KaKa'25-Jan-07 5:55
KaKa'25-Jan-07 5:55 
AnswerRe: How to initialize a 2D array correctly? :confused: Pin
Roger Stoltz25-Jan-07 6:18
Roger Stoltz25-Jan-07 6:18 
AnswerRe: How to initialize a 2D array correctly? :confused: Pin
David Crow25-Jan-07 6:26
David Crow25-Jan-07 6:26 
AnswerRe: How to initialize a 2D array correctly? :confused: Pin
Michael Dunn25-Jan-07 8:18
sitebuilderMichael Dunn25-Jan-07 8:18 
GeneralRe: How to initialize a 2D array correctly? :confused: Pin
Roger Stoltz25-Jan-07 11:15
Roger Stoltz25-Jan-07 11:15 
QuestionVisual C++ 1.52 error Pin
jnhemley25-Jan-07 5:55
jnhemley25-Jan-07 5:55 
AnswerRe: Visual C++ 1.52 error Pin
Ravi Bhavnani25-Jan-07 5:59
professionalRavi Bhavnani25-Jan-07 5:59 
GeneralRe: Visual C++ 1.52 error Pin
jnhemley25-Jan-07 6:03
jnhemley25-Jan-07 6:03 
AnswerRe: Visual C++ 1.52 error Pin
jnhemley25-Jan-07 6:00
jnhemley25-Jan-07 6:00 
AnswerRe: Visual C++ 1.52 error Pin
Ted Ferenc25-Jan-07 6:26
Ted Ferenc25-Jan-07 6:26 
GeneralRe: Visual C++ 1.52 error Pin
jnhemley25-Jan-07 8:33
jnhemley25-Jan-07 8:33 

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.