Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionreading file failed.... Pin
Y_Kaushik16-Jun-07 0:01
Y_Kaushik16-Jun-07 0:01 
AnswerRe: reading file failed.... Pin
neha.agarwal2716-Jun-07 1:21
neha.agarwal2716-Jun-07 1:21 
GeneralRe: reading file failed.... Pin
Y_Kaushik16-Jun-07 1:34
Y_Kaushik16-Jun-07 1:34 
GeneralRe: reading file failed.... Pin
neha.agarwal2716-Jun-07 1:44
neha.agarwal2716-Jun-07 1:44 
GeneralRe: reading file failed.... Pin
Y_Kaushik16-Jun-07 2:08
Y_Kaushik16-Jun-07 2:08 
GeneralRe: reading file failed.... Pin
neha.agarwal2716-Jun-07 2:50
neha.agarwal2716-Jun-07 2:50 
GeneralRe: reading file failed.... Pin
Y_Kaushik16-Jun-07 3:36
Y_Kaushik16-Jun-07 3:36 
GeneralRe: reading file failed.... Pin
David Crow18-Jun-07 2:56
David Crow18-Jun-07 2:56 
Y_Kaushik wrote:
But in that case

fileObj.Open("c:\\UserFolder\\fname.txt",CFile::modeCreate,NULL);

file name become fname (Not actual file name) Why??


Because that's exactly what you told it to do. Confused | :confused:

Y_Kaushik wrote:
How can we read contant of old file and copy to new one simultaniously..


Use the Read() and Write() methods. Start reading the documentation so that you are not asking the most basic of questions.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionCalling a Function in CMainFrame Pin
Abhijeet Pathak15-Jun-07 22:56
Abhijeet Pathak15-Jun-07 22:56 
AnswerRe: Calling a Function in CMainFrame Pin
StevenS_Dev16-Jun-07 6:07
StevenS_Dev16-Jun-07 6:07 
QuestionRe: Calling a Function in CMainFrame Pin
Abhijeet Pathak17-Jun-07 0:16
Abhijeet Pathak17-Jun-07 0:16 
AnswerRe: Calling a Function in CMainFrame [modified] Pin
Abhijeet Pathak17-Jun-07 0:21
Abhijeet Pathak17-Jun-07 0:21 
GeneralRe: Calling a Function in CMainFrame Pin
StevenS_Dev17-Jun-07 11:29
StevenS_Dev17-Jun-07 11:29 
GeneralRe: Calling a Function in CMainFrame Pin
StevenS_Dev17-Jun-07 11:32
StevenS_Dev17-Jun-07 11:32 
GeneralRe: Calling a Function in CMainFrame Pin
David Crow18-Jun-07 2:39
David Crow18-Jun-07 2:39 
QuestionDetecting Windowless Applications that are "not responding" Pin
mariodr15-Jun-07 22:04
mariodr15-Jun-07 22:04 
Questioncube class Pin
gentleguy15-Jun-07 21:39
gentleguy15-Jun-07 21:39 
AnswerRe: cube class Pin
Christian Graus15-Jun-07 22:00
protectorChristian Graus15-Jun-07 22:00 
JokeRe: cube class Pin
Cedric Moonen16-Jun-07 0:10
Cedric Moonen16-Jun-07 0:10 
GeneralRe: cube class Pin
Kevin McFarlane16-Jun-07 0:59
Kevin McFarlane16-Jun-07 0:59 
JokeRe: cube class Pin
Hamid_RT16-Jun-07 9:18
Hamid_RT16-Jun-07 9:18 
AnswerRe: cube class Pin
Hamid_RT16-Jun-07 9:19
Hamid_RT16-Jun-07 9:19 
QuestionDestroy the memory Pin
Anu_Bala15-Jun-07 20:18
Anu_Bala15-Jun-07 20:18 
AnswerRe: Destroy the memory Pin
Mark Salsbery16-Jun-07 6:55
Mark Salsbery16-Jun-07 6:55 
Questiondelete this within the class function causing problems Pin
Cyrilix15-Jun-07 18:17
Cyrilix15-Jun-07 18:17 

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.