Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionshortcut for going to function definition Pin
AmbiguousName24-Jul-10 22:49
AmbiguousName24-Jul-10 22:49 
AnswerRe: shortcut for going to function definition Pin
Richard MacCutchan25-Jul-10 1:36
mveRichard MacCutchan25-Jul-10 1:36 
GeneralRe: shortcut for going to function definition Pin
Sauro Viti25-Jul-10 4:41
professionalSauro Viti25-Jul-10 4:41 
QuestionBasic question about MFC document view architecture Pin
CString(0xcccccccc)24-Jul-10 10:25
CString(0xcccccccc)24-Jul-10 10:25 
AnswerRe: Basic question about MFC document view architecture Pin
KingsGambit24-Jul-10 19:23
KingsGambit24-Jul-10 19:23 
AnswerRe: Basic question about MFC document view architecture Pin
Richard MacCutchan24-Jul-10 21:28
mveRichard MacCutchan24-Jul-10 21:28 
AnswerRe: Basic question about MFC document view architecture Pin
Aescleal25-Jul-10 3:55
Aescleal25-Jul-10 3:55 
AnswerRe: Basic question about MFC document view architecture Pin
«_Superman_»25-Jul-10 5:32
professional«_Superman_»25-Jul-10 5:32 
I'm assuming you're asking how CTestDoc is referenced in the CTestView class in the TestView.h file.

If you look in the TestView.cpp file you will see the following 2 lines -
#include "TestDoc.h"
#include "TestView.h"

Here you will notice that TestDoc.h is included before TestView.h.
This way the CTestView class already knows about the CTestDoc class.

Change this to the following and you can expect errors at exactly the place where you're talking about -
#include "TestView.h"
#include "TestDoc.h"

«_Superman

I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C







GeneralRe: Basic question about MFC document view architecture Pin
CString(0xcccccccc)25-Jul-10 21:36
CString(0xcccccccc)25-Jul-10 21:36 
AnswerRe: Basic question about MFC document view architecture Pin
Maximilien25-Jul-10 7:10
Maximilien25-Jul-10 7:10 
QuestionInternal error during IncrBuildImage??? Pin
AmbiguousName24-Jul-10 8:38
AmbiguousName24-Jul-10 8:38 
AnswerRe: Internal error during IncrBuildImage??? Pin
Richard Andrew x6424-Jul-10 8:43
professionalRichard Andrew x6424-Jul-10 8:43 
QuestionDLL Creation and Usage Pin
Anil Kumar.Arvapalli24-Jul-10 0:46
Anil Kumar.Arvapalli24-Jul-10 0:46 
AnswerRe: DLL Creation and Usage Pin
Luc Pattyn24-Jul-10 1:43
sitebuilderLuc Pattyn24-Jul-10 1:43 
Questionfopen and fwrite VC++.net [modified] Pin
AmbiguousName23-Jul-10 20:30
AmbiguousName23-Jul-10 20:30 
AnswerRe: fopen and fwrite VC++.net Pin
Richard MacCutchan23-Jul-10 21:55
mveRichard MacCutchan23-Jul-10 21:55 
GeneralRe: fopen and fwrite VC++.net Pin
AmbiguousName23-Jul-10 22:11
AmbiguousName23-Jul-10 22:11 
NewsRe: fopen and fwrite VC++.net [modified] Pin
Richard MacCutchan23-Jul-10 23:13
mveRichard MacCutchan23-Jul-10 23:13 
GeneralRe: fopen and fwrite VC++.net Pin
ThatsAlok25-Jul-10 20:07
ThatsAlok25-Jul-10 20:07 
GeneralRe: fopen and fwrite VC++.net Pin
Richard MacCutchan25-Jul-10 22:39
mveRichard MacCutchan25-Jul-10 22:39 
QuestionCrash Pin
T.RATHA KRISHNAN23-Jul-10 20:23
T.RATHA KRISHNAN23-Jul-10 20:23 
AnswerRe: Crash Pin
Rolf Kristensen23-Jul-10 21:36
Rolf Kristensen23-Jul-10 21:36 
QuestionHow Can fill Color in Rectangle that is Drawn by CDC::Rectangle? Pin
Le@rner23-Jul-10 19:41
Le@rner23-Jul-10 19:41 
AnswerRe: How Can fill Color in Rectangle that is Drawn by CDC::Rectangle? Pin
Richard MacCutchan23-Jul-10 21:52
mveRichard MacCutchan23-Jul-10 21:52 
GeneralRe: How Can fill Color in Rectangle that is Drawn by CDC::Rectangle? Pin
Le@rner23-Jul-10 21:59
Le@rner23-Jul-10 21:59 

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.