|
siddharthsan wrote: Actually, it should accept the file content as input and it should send it to a parser(other function).
bool fnAcceptInput(LPCTSTR a_szFileContent);
"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
|
|
|
|
|
Whats meaning send it to other function
|
|
|
|
|
Thanks
After accepting the file , it should send it to a parser to parse that file.
Siddharth
|
|
|
|
|
|
To read /parse the xml file, u can use Tiny XML or XML Document Object Model.
Come online at:-
jubinc@skype
|
|
|
|
|
Don Box wrote: To read /parse the xml file, u can use Tiny XML or XML Document Object Model.
yeah it good.. but i prefer Microsoft XML more as it there would no other dependency on parser code on executable
"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
|
|
|
|
|
Investigate SAX2 parsers. Try starting here[^].
Steve
|
|
|
|
|
Hi
Can anybody tell me how to read and write in to a file in vc++.?
Harsha
|
|
|
|
|
|
|
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
|
|
|
|