Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Read coefficients of linear equations into 2d array Pin
David Crow22-Jun-09 4:41
David Crow22-Jun-09 4:41 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady23-Jun-09 0:14
Omar Al Qady23-Jun-09 0:14 
Questionread a file using Readfile() Pin
rahuljin20-Jun-09 0:31
rahuljin20-Jun-09 0:31 
AnswerRe: read a file using Readfile() Pin
chandu00420-Jun-09 0:36
chandu00420-Jun-09 0:36 
AnswerRe: read a file using Readfile() Pin
Sarath C20-Jun-09 0:50
Sarath C20-Jun-09 0:50 
AnswerRe: read a file using Readfile() Pin
Rajesh R Subramanian20-Jun-09 1:00
professionalRajesh R Subramanian20-Jun-09 1:00 
QuestionRe: read a file using Readfile() Pin
chandu00420-Jun-09 1:08
chandu00420-Jun-09 1:08 
AnswerRe: read a file using Readfile() Pin
Rajesh R Subramanian20-Jun-09 1:18
professionalRajesh R Subramanian20-Jun-09 1:18 
CFileDialog?! So, you're using MFC. Then you must use CStdioFile class to read file (you said line by line) instead of ReadFile() and that will make things simpler for you.



chandu004 wrote:
if i used CFileDialog, after user selects an input file from any other folder, from tha point onwards, specifying only the file name, will give an error coz, the newly selected folder need not have that file.
in this case ihad to use Getcurdirectory api.



CFileDialog::GetPathName()[^] returns the full path of the file selected by the user (of course, if clicked OK).


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: read a file using Readfile() Pin
chandu00420-Jun-09 1:26
chandu00420-Jun-09 1:26 
GeneralRe: read a file using Readfile() Pin
Rajesh R Subramanian20-Jun-09 1:29
professionalRajesh R Subramanian20-Jun-09 1:29 
GeneralRe: read a file using Readfile() Pin
p_196020-Jun-09 1:38
p_196020-Jun-09 1:38 
GeneralRe: read a file using Readfile() Pin
chandu00420-Jun-09 1:42
chandu00420-Jun-09 1:42 
GeneralRe: read a file using Readfile() Pin
Rajesh R Subramanian20-Jun-09 2:01
professionalRajesh R Subramanian20-Jun-09 2:01 
GeneralRe: read a file using Readfile() Pin
chandu00420-Jun-09 2:04
chandu00420-Jun-09 2:04 
GeneralRe: read a file using Readfile() Pin
Rajesh R Subramanian20-Jun-09 2:09
professionalRajesh R Subramanian20-Jun-09 2:09 
GeneralRe: read a file using Readfile() Pin
chandu00420-Jun-09 2:15
chandu00420-Jun-09 2:15 
AnswerRe: read a file using Readfile() Pin
Ozer Karaagac20-Jun-09 14:25
professionalOzer Karaagac20-Jun-09 14:25 
GeneralRe: read a file using Readfile() Pin
rahuljin20-Jun-09 1:55
rahuljin20-Jun-09 1:55 
GeneralRe: read a file using Readfile() Pin
chandu00420-Jun-09 2:06
chandu00420-Jun-09 2:06 
GeneralRe: read a file using Readfile() Pin
rahuljin20-Jun-09 3:21
rahuljin20-Jun-09 3:21 
AnswerRe: read a file using Readfile() Pin
krmed20-Jun-09 3:42
krmed20-Jun-09 3:42 
GeneralRe: read a file using Readfile() Pin
rahuljin20-Jun-09 8:13
rahuljin20-Jun-09 8:13 
GeneralRe: read a file using Readfile() Pin
krmed20-Jun-09 9:34
krmed20-Jun-09 9:34 
GeneralRe: read a file using Readfile() Pin
rahuljin20-Jun-09 22:01
rahuljin20-Jun-09 22:01 
Questionincrease the size of the DialogBox during RunTime Pin
p_196020-Jun-09 0:27
p_196020-Jun-09 0:27 

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.