|
harsh_2961 wrote: Can anybody tell me how to read and write in to a file in vc++.?
Better try your hand on CStdioFile
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
sir,
i am sorry that i was not able to send you people the attachment.
*On Read Button clicked, the cotents in the file (eg: the text in the file) must be displayed in the EditBox and must be able to read and wirte in to that particulaar file which is diaplyed in the EditBox.
*And on Save Button ask the file name to save using FileDialog and Write the File Using WriteFile(), Data Entered in the EditBox
shashank.s
|
|
|
|
|
Where is u'r Question?
Come online at:-
jubinc@skype
|
|
|
|
|
wrote: On Read Button clicked, the cotents in the file (eg: the text in the file) must be displayed in the EditBox
Use CFile::Read() to read the contents of the file.
Show the contents read in the edit box.
Let the user modify the contents in the edit box.
wrote: And on Save Button ask the file name to save using FileDialog and Write th
CFile::Write() to write the contents back to the file.
What is your problem exactly? Reading or writing to the file or something else.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
If your question about read you can use of CFile::Read and use of SetWindowText/GetWindowText
Is your question?
|
|
|
|
|
wrote: shashank.s
dude look here Answer[^]... why you are posting same message again and again
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Maybe same question=difference answers
|
|
|
|
|
he he he
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
WhiteSky wrote: Maybe same question=difference answers
So he volunteers to get confused by us?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
jhwurmbach wrote: confused
But why confused?
|
|
|
|
|
WhiteSky wrote: But why confused?
Because he seems to be a bloody beginner without a clue, and he is harvesting Tips along the line "Use CFile ".
This is technically correct and morally (he does not describe his problem, wants uns to do his homework and refuses to answer questions of any kind) too.
But he is probably not able to benefit from such a "pointer into the documentation".
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
hello,
1. In a Dialog box application, as shown in the Attachment.
On Read Button ask the file name to read using FileDialog and Read the File Using ReadFile()and Display in the EditBox.
2On Save Button ask the file name to save using FileDialog and Write the File Using WriteFile(), Data Entered in the EditBox.
shashank.s
|
|
|
|
|
wrote: as shown in the Attachment.
where? I coudn't find any attachment?
And whats your question? Or is that an assignment for us?
nave
|
|
|
|
|
wrote: 1. In a Dialog box application, as shown in the Attachment.
Where ?
wrote: On Read Button ask the file name to read using FileDialog and Read the File Using ReadFile()and Display in the EditBox.
2On Save Button ask the file name to save using FileDialog and Write the File Using WriteFile(), Data Entered in the EditBox.
Can you be clear about what you want to say ?
Are you looking for CFileDialog ?
|
|
|
|
|
And your problem can you be more specific
|
|
|
|
|
So CStdioFile will read file for you.. SetDlgItemText and GetDlgItemText will do the job for setting and getting text for you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
do you know code of program :"compress image"?
help me.thanks
|
|
|
|
|
I think you're looking for google.
The most obvious way to compress an image is to save it as a jpeg.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
THANKs
|
|
|
|
|
You're welcome
|
|
|
|
|
Hi
I have a question regarding map file please help me
I made a release version of an application with map file so that if my application crash I easily pinpoint out the function/s causes that problem. Unfortunately the Crash address that I get is not included in the map file that Ive created, it seems that the preferred load address of my Map file is 0x00400000 and all the crash address that I have are startin 0x006...
I hope you could help guys
waiting for your response ASAP
|
|
|
|
|
Sure that the crash reported from your exe/dll/module? Double check the crash error dialog
|
|
|
|
|
Yah! Im positive and abosulutely sure that those crash log was from my exe file. but when i search that log file to my map file the crash address was not found. How I will resolved this thing? Thanks
|
|
|
|
|
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q196/7/55.asp&NoWebContent=1
|
|
|
|