Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Issue with localtime() Pin
Yusuf9-Mar-09 11:23
Yusuf9-Mar-09 11:23 
AnswerRe: Issue with localtime() Pin
Member 38480949-Mar-09 11:39
Member 38480949-Mar-09 11:39 
GeneralRe: Issue with localtime() Pin
Yusuf9-Mar-09 13:42
Yusuf9-Mar-09 13:42 
AnswerRe: Issue with localtime() Pin
Don Rummelhart10-Mar-09 11:25
Don Rummelhart10-Mar-09 11:25 
QuestionPath of Root and Virtual directory in ISAPI ? Pin
mmayur9-Mar-09 8:35
mmayur9-Mar-09 8:35 
QuestionDoubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
sarathbabununna9-Mar-09 7:55
sarathbabununna9-Mar-09 7:55 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
David Crow9-Mar-09 8:26
David Crow9-Mar-09 8:26 
AnswerRe: Doubt on how the document object is retrieved to the application class in MFC Document View Architecture Pin
Iain Clarke, Warrior Programmer10-Mar-09 1:36
Iain Clarke, Warrior Programmer10-Mar-09 1:36 
In addition to David's reply (which is good - read the documentation for the functions!), you should also look at the documentation page for CDocTemplate.

Your application could handle different kinds of document - for example .bmp, and .jpg. So each document type would have its own CDocument (ie, CMyJpgDocument), and its own CView class (ie, CMyBmpView). This information is called a template, and stored in a CMultiDocTemplate, or CSingleDocTemplate. Each of these is stored in the App object.

So your code is going through all templates, then iterating through all documents created from each template.

You have missed off a few brackets I think!

Try single stepping through the code, and reading the document pages for more information. It is all there.

Iain.

ps, I've never created an app with more than one kind of template, but the possibility exists!

Codeproject MVP for C++, I can't believe it's for my lounge posts...

QuestionScroll Bars and Input Fields Pin
BobInNJ9-Mar-09 7:44
BobInNJ9-Mar-09 7:44 
QuestionCHtmlView not displaying anything [modified] Pin
Brahmandcoder9-Mar-09 7:08
Brahmandcoder9-Mar-09 7:08 
QuestionAccessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 6:36
ForNow9-Mar-09 6:36 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
BobInNJ9-Mar-09 7:32
BobInNJ9-Mar-09 7:32 
QuestionRe: Accessing Private member of a base Class from a Derived Class Pin
David Crow9-Mar-09 8:28
David Crow9-Mar-09 8:28 
AnswerRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:23
ForNow9-Mar-09 12:23 
GeneralRe: Accessing Private member of a base Class from a Derived Class Pin
ForNow9-Mar-09 12:33
ForNow9-Mar-09 12:33 
QuestionI use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Astitva239-Mar-09 5:10
Astitva239-Mar-09 5:10 
AnswerRe: I use these two functions that I have copied from codeproject to use static text in application. But everytime I put a command button in my applicatio Pin
Eytukan9-Mar-09 5:31
Eytukan9-Mar-09 5:31 
Generaloverlayered text Pin
Astitva239-Mar-09 5:57
Astitva239-Mar-09 5:57 
GeneralRe: overlayered text Pin
Eytukan9-Mar-09 6:03
Eytukan9-Mar-09 6:03 
GeneralRe: overlayered text Pin
Astitva239-Mar-09 8:05
Astitva239-Mar-09 8:05 
Questionunicode application Pin
tom groezer9-Mar-09 4:47
tom groezer9-Mar-09 4:47 
QuestionRe: unicode application Pin
David Crow9-Mar-09 4:49
David Crow9-Mar-09 4:49 
AnswerRe: unicode application Pin
Eytukan9-Mar-09 5:04
Eytukan9-Mar-09 5:04 
GeneralRe: unicode application Pin
tom groezer9-Mar-09 7:03
tom groezer9-Mar-09 7:03 
GeneralRe: unicode application Pin
Eytukan9-Mar-09 7:35
Eytukan9-Mar-09 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.