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

C / C++ / MFC

 
Questionfstream problem Pin
dellthinker25-Jan-07 9:29
dellthinker25-Jan-07 9:29 
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 
// This example uses _access to check the file named
// crt_ACCESS.C to see if it exists and if writing is allowed.

The question was testing if a file is already open?
A file opened for shared access will mess _access up perhaps?

*EDIT* Actually I messed up my own reply. _access has nothing to do with open sharing but with
the file attributes. Therefore I respectfully disagree with your solution Poke tongue | ;-P

Mark

AnswerRe: Test if a FILE is open Pin
Blake Miller25-Jan-07 11:15
Blake Miller25-Jan-07 11:15 
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 

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.