How to Save Text File in SDI application
-
hi... I have an application which send data to some "InputData.txt". Now if i click " FILE->Save " then it needs to be ask for saving that "InputData.txt" in browsed Location!! can u help in this regard.. Thanks in advanvce!!!!!
-
hi... I have an application which send data to some "InputData.txt". Now if i click " FILE->Save " then it needs to be ask for saving that "InputData.txt" in browsed Location!! can u help in this regard.. Thanks in advanvce!!!!!
So, was your previous query solved? Why don't you take a little time to thank the ones who solved it before asking the next question?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
hi... I have an application which send data to some "InputData.txt". Now if i click " FILE->Save " then it needs to be ask for saving that "InputData.txt" in browsed Location!! can u help in this regard.. Thanks in advanvce!!!!!
Hi, Handle the Save click and in Save Click handler do the Following CFileDialog dlg; if(dlg.DoModal() == IDOK) { CString fileName = dlg.GetPathName(); } thanks Nitheesh
-
So, was your previous query solved? Why don't you take a little time to thank the ones who solved it before asking the next question?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
I adjust for troll's vote for now as I think CPallini will take some more hours. :)
-
hi... I have an application which send data to some "InputData.txt". Now if i click " FILE->Save " then it needs to be ask for saving that "InputData.txt" in browsed Location!! can u help in this regard.. Thanks in advanvce!!!!!
If you properly used SDI framework in MFC, it will do for you.
-
I adjust for troll's vote for now as I think CPallini will take some more hours. :)
I think he is sleep now. ;)
-
I adjust for troll's vote for now as I think CPallini will take some more hours. :)
Thanks for the vote man. I appreciate it. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Thanks for the vote man. I appreciate it. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
I see that as the advance adjustment for the foreseen troll's vote. :laugh:
-
If you properly used SDI framework in MFC, it will do for you.
In my application i have some buttons.... if i click them then some data will be stored in a buffer.i need that data to be stored in a File. How can i do that..... and If i click File->Save ,then which handler will be called and how can i override that function to save my data in Text File!!!!! THANKS in advance....
-
In my application i have some buttons.... if i click them then some data will be stored in a buffer.i need that data to be stored in a File. How can i do that..... and If i click File->Save ,then which handler will be called and how can i override that function to save my data in Text File!!!!! THANKS in advance....
Are you using MFC SDI? [Implicit Creation of a CArchive Object via the Framework^] It will call the ::Serialize() you may refer msdn for MFC Serialization. Otherwise, you need to use APIs for showing up Browse for file dialog and use file APIs to write data.
-
hi... I have an application which send data to some "InputData.txt". Now if i click " FILE->Save " then it needs to be ask for saving that "InputData.txt" in browsed Location!! can u help in this regard.. Thanks in advanvce!!!!!