Q: SDI and initialization.
Jaska Kivela -- jaska@iki.fi
Saturday, April 06, 1996
Environment: MSVC++ 4.0,MFC 4.0, WIN 95, 0x486,16Mb, etc...
(you're welcome)
Now I have a problem.
I have created an SDI application with AppWizard.
Ok, my app starts fine and the caption reads something like
"myApp". Then, I cannot do anything with my Doc. Until I do
"File"->"New". Then my app decides to create a new Instance.
Its caption says "Untitled - myApp".=20
Now, my problem is; how do I make the 1st instance of "myApp"
say "Untitled - myApp" ?
Also, there's this one funny thing: when I've started first
"myApp" and then via "File"->"New" an "Untitled - myApp";
when I close the "Untitled - myApp", the plain "myApp" stays
alive; but when I close "myApp", the "Untitled - myApp" dies
along...
... and, I've played enough around with the CCommandLineInfo
and friends; even cut'em out, but to no avail ...
... any ideas anyone ?-o
--
Jaska Kivel=E4 (mailto:jaska@iki.fi)
Opiskelijankatu 11 A 3, FIN-33720 TAMPERE tel. +358-50-5571315
http://www.iki.fi/jaska/
Greg D. Tighe -- gdt@eng.aisinc.com
Wednesday, April 10, 1996
> Now I have a problem.
> I have created an SDI application with AppWizard.
> Ok, my app starts fine and the caption reads something like
> "myApp". Then, I cannot do anything with my Doc. Until I do
> "File"->"New". Then my app decides to create a new Instance.
> Its caption says "Untitled - myApp".
Sounds more like you've created an MDI application rather than an SDI
application. If this is the case then all the behavior you've
described is proper MDI application behavior.
Try creating another new project workspace using MFC AppWizard (exe)
and be sure to check the "Single document" radio button when it asks
you "What type of application would you like to create?"
-Greg Tighe
Applied Intelligent Systems, Inc.
Ann Arbor, MI
gdt@aisinc.com
| Вернуться в корень Архива
|