Open A File Just Like MS Word Does
-
Hello! I'm working on an application similar to MS Word, but on a much smaller scale. My problem is that I do not know how to open a file just like Word does. Word does something like this: if you are already in Word and you opened a file already and then you open another one from the file menu, than a new application appears with this file opened, just like the first file. But this application does not open a new WINWORD.EXE app. No matter how many files you open there's still just one WINWORD.EXE. So, I want to do exactly like this in my application, but I don't know how! If Word does not open a new app with the opening of a new file, this means that somehow the new interface opened with the file is linked with the initial dlls or with the files that have been loaded in memory. I don't have a clue how to do that. I'm working in C++, Visual Studio 2005, MFC. Anybody has any idea? Thanks!
-
Hello! I'm working on an application similar to MS Word, but on a much smaller scale. My problem is that I do not know how to open a file just like Word does. Word does something like this: if you are already in Word and you opened a file already and then you open another one from the file menu, than a new application appears with this file opened, just like the first file. But this application does not open a new WINWORD.EXE app. No matter how many files you open there's still just one WINWORD.EXE. So, I want to do exactly like this in my application, but I don't know how! If Word does not open a new app with the opening of a new file, this means that somehow the new interface opened with the file is linked with the initial dlls or with the files that have been loaded in memory. I don't have a clue how to do that. I'm working in C++, Visual Studio 2005, MFC. Anybody has any idea? Thanks!
dliviu wrote:
So, I want to do exactly like this in my application, but I don't know how!
You want to look into SDI.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
dliviu wrote:
So, I want to do exactly like this in my application, but I don't know how!
You want to look into SDI.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
Hello! I'm working on an application similar to MS Word, but on a much smaller scale. My problem is that I do not know how to open a file just like Word does. Word does something like this: if you are already in Word and you opened a file already and then you open another one from the file menu, than a new application appears with this file opened, just like the first file. But this application does not open a new WINWORD.EXE app. No matter how many files you open there's still just one WINWORD.EXE. So, I want to do exactly like this in my application, but I don't know how! If Word does not open a new app with the opening of a new file, this means that somehow the new interface opened with the file is linked with the initial dlls or with the files that have been loaded in memory. I don't have a clue how to do that. I'm working in C++, Visual Studio 2005, MFC. Anybody has any idea? Thanks!
If you're using MFC, you can find an option in the project wizard called
Multiple top-level documents
underApplication type
. If not, what you need to do is to create a new UI thread each time a new file is opened.«_Superman_» _I love work. It gives me something to do between weekends.
-
If you're using MFC, you can find an option in the project wizard called
Multiple top-level documents
underApplication type
. If not, what you need to do is to create a new UI thread each time a new file is opened.«_Superman_» _I love work. It gives me something to do between weekends.