Help me!
-
I have created an MDI application. In this application, I have a class CMyDoc,which is inherited from CDocument. Now I want to write some code to open a document of this kind, while not showing the frame and view which are associated with the document. I write these codes: { ... CMyDoc * pDoc=(CMyDoc*)theApp.OpenDocumentFile(m_strNewFileName); ... } As you can guess,the frame and view are showed.Please tell me how to open a document without showing the frame and view . I love sea
-
I have created an MDI application. In this application, I have a class CMyDoc,which is inherited from CDocument. Now I want to write some code to open a document of this kind, while not showing the frame and view which are associated with the document. I write these codes: { ... CMyDoc * pDoc=(CMyDoc*)theApp.OpenDocumentFile(m_strNewFileName); ... } As you can guess,the frame and view are showed.Please tell me how to open a document without showing the frame and view . I love sea
If you didn't open the view, how would the document be shown ? The point of a view is that it's how a document is rendered. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
-
If you didn't open the view, how would the document be shown ? The point of a view is that it's how a document is rendered. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
To Christian, First thank you very much for your reply! Yeah,I agree about what you have said. But what i want to do now, is to read ~~~~~ the content of a document.And I donot want that the view and frame are to be ~~~~~~~~~~~~~~~~~~~~~~~~~ showed. Let us take an example: Suppose that you are going to load the content of a *.txt file. Must you run an notepad.exe? No. You can make it by writing such codes: CStdioFile f(...); Do you catch what i mean? I love sea
-
To Christian, First thank you very much for your reply! Yeah,I agree about what you have said. But what i want to do now, is to read ~~~~~ the content of a document.And I donot want that the view and frame are to be ~~~~~~~~~~~~~~~~~~~~~~~~~ showed. Let us take an example: Suppose that you are going to load the content of a *.txt file. Must you run an notepad.exe? No. You can make it by writing such codes: CStdioFile f(...); Do you catch what i mean? I love sea
Ah - what is the document ? If it's a custom thing, abstract the loading code into a class, then you can call it from where-ever you like. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002