المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Basic question about MFC document view architecture



C++ Programming
07-25-2010, 06:40 AM
By my knowledge, in order to make a class recognizable in another module of an application, I need to include it's header file or, at least, to use a forward declaration.

I'll ask my question using an example. Let's suppose I have an application named Test. In the CTestView class I have the function GetDocument() returning a pointer of CTestDoc* type. How doess the view class know about the CTestDoc* type if there is no "#include TestDoc.h" declaration in the CViewTest class ?