Click here to Skip to main content
16,016,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Rajesh R Subramanian wrote:
Like I said, you can retrieve the full path of the file selected by the user by calling CFileDialog::GetPathName() if the user clicked OK.


iam aware of these operations sir, i think iam unable to put my qn into proper words. now i think i also need some rest.
any way here is my last attempt to explain my doubt.
1.in some of my screens/modules, i used file operations simply by using the filename with out path.
assume my application and the files are in "E:\\project" folder.
2.these modules were working perfectly.
3.say there is one more module in the same application, where, user has to browse for a file and he selects a file from desktop(obviously he clicks ok). now, the application will read some data from the selected file and do some thing else.
4.from this point onwards, the modules as discussed in point no 1 shows abnormalities coz, the default filenames are not available on desktop.

i mean, default folder is reset from the application folder to desktop.

--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.

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 
AnswerRe: increase the size of the DialogBox during RunTime Pin
Sarath C20-Jun-09 0:35
Sarath C20-Jun-09 0:35 
GeneralRe: increase the size of the DialogBox during RunTime Pin
p_196020-Jun-09 0:42
p_196020-Jun-09 0:42 
GeneralRe: increase the size of the DialogBox during RunTime Pin
p_196020-Jun-09 1:08
p_196020-Jun-09 1:08 
AnswerRe: increase the size of the DialogBox during RunTime Pin
Ozer Karaagac20-Jun-09 15:21
professionalOzer Karaagac20-Jun-09 15:21 

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.