SDI File Open
-
I am using SDI application with doc/view architecture support.I dont have any idea how to implement open file function.i read lots of article but not find any solution. Thanks in advance. :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
Which type of file r u want to open? Try CFile class to open and perform other operation on that file.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
Hi Shanky, Thanks For reply. I want to open the unicode txt file in CEditView.I know internally onOpenDocument is called but dont know how to implement it. so that the code is open in View Window just like notepad. If you have any code than pls share with me or if any idea how to implement it. Again thanks :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
Hi Shanky, Thanks For reply. I want to open the unicode txt file in CEditView.I know internally onOpenDocument is called but dont know how to implement it. so that the code is open in View Window just like notepad. If you have any code than pls share with me or if any idea how to implement it. Again thanks :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
Shilpi Boosar wrote:
...but dont know how to implement it. so that the code is open in View Window just like notepad.
Your document class will contain some sort of buffer to hold the contents of the file. Your view class will render that buffer on the screen/printer.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Shilpi Boosar wrote:
...but dont know how to implement it. so that the code is open in View Window just like notepad.
Your document class will contain some sort of buffer to hold the contents of the file. Your view class will render that buffer on the screen/printer.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
Hi David thanks for reply. I am able to open the file in view window but when i close the application and open the txt file than that file is blank. i dont know why. If you have any article that explain the doc view architecture and splitter window than please send it to me. :) Thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
Hi David thanks for reply. I am able to open the file in view window but when i close the application and open the txt file than that file is blank. i dont know why. If you have any article that explain the doc view architecture and splitter window than please send it to me. :) Thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
Is the document class overwriting the file?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch