Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: make a screensaver with C++ Pin
JoeZhang9-Jan-03 22:31
JoeZhang9-Jan-03 22:31 
GeneralPluging ActiveXControl in I.E toolbar-Pls help me Urgent Pin
vcarivu9-Jan-03 19:47
vcarivu9-Jan-03 19:47 
GeneralRe: Pluging ActiveXControl in I.E toolbar-Pls help me Urgent Pin
Michael Dunn9-Jan-03 20:12
sitebuilderMichael Dunn9-Jan-03 20:12 
GeneralRe: Pluging ActiveXControl in I.E toolbar-Pls help me Urgent Pin
vcarivu9-Jan-03 23:26
vcarivu9-Jan-03 23:26 
GeneralRe: Pluging ActiveXControl in I.E toolbar-Pls help me Urgent Pin
xxhimanshu10-Jan-03 1:08
xxhimanshu10-Jan-03 1:08 
QuestionHow to Let The webpage auto-download the DLL-file and Registe it on client. Pin
Anonymous9-Jan-03 19:05
Anonymous9-Jan-03 19:05 
AnswerRe: How to Let The webpage auto-download the DLL-file and Registe it on client. Pin
super9-Jan-03 19:16
professionalsuper9-Jan-03 19:16 
GeneralCross dependent headers Pin
Dan Watt9-Jan-03 18:32
Dan Watt9-Jan-03 18:32 
Here is what I mean abstractly: I have a project that has 3 class, each defined in its own header.
Class A has a variable of class B, and class B has a variable of class C. What I need to do is pass down the "this" pointer from class A to class C, so that class C can interact with some of the memebers of A. To do this, I have to pass it through B then to C. Also, class C's header file needs to include A's, and so does B.

The problem is that when I include "ClassA.h" in "ClassC.h", I get C2079 errors saying that class C is not defined, when I make an instance of class C inside class B. I realize what is going on here (correct me if I am wrong) is that MSVC gets a little confused when I have the include's tangled up like this (C includes A which includes B which includes C AND A, even though I am most definately using #ifndef)

Make any sense? I have seen this error a lot in the past, usually predeclaring all involved classes before making any include directives fixes this, but this time around that isnt working. Is there a fairly simple solution to this? I am using .NET, unmannaged C++, and I also tried using precompiled headers (and no, I am not using MFC, this is a straight up console app that is later going to be turned into a lib once I am done testing everything).

(maybe this is neater)
ClassA.h includes ClassB.h, and class A has a variable of class B
ClassB.h includes ClassA.h and ClassC.h, and class B has a variable of class C. One of the methods of class B takes a pointer to a variable of class A
ClassC.h includes ClassB.h and ClassA.h, and has a method that takes a pointer to a variable of class A.
GeneralRe: Cross dependent headers Pin
Michael Dunn9-Jan-03 20:16
sitebuilderMichael Dunn9-Jan-03 20:16 
GeneralTemplates Pin
Stan the man9-Jan-03 16:41
Stan the man9-Jan-03 16:41 
GeneralRe: Templates Pin
Dave Bryant9-Jan-03 17:23
Dave Bryant9-Jan-03 17:23 
GeneralRe: Templates Pin
Michael Dunn9-Jan-03 18:27
sitebuilderMichael Dunn9-Jan-03 18:27 
GeneralRe: Templates Pin
Stan the man9-Jan-03 18:46
Stan the man9-Jan-03 18:46 
GeneralRe: Templates Pin
Michael Dunn9-Jan-03 19:51
sitebuilderMichael Dunn9-Jan-03 19:51 
GeneralRe: Templates Pin
Stan the man10-Jan-03 2:57
Stan the man10-Jan-03 2:57 
GeneralRe: Templates Pin
Michael Dunn10-Jan-03 7:08
sitebuilderMichael Dunn10-Jan-03 7:08 
GeneralRe: Templates Pin
Dave Bryant12-Jan-03 7:31
Dave Bryant12-Jan-03 7:31 
GeneralRe: Templates Pin
Vicar29-Jan-03 19:24
Vicar29-Jan-03 19:24 
QuestionCheck visibility of a child control? Pin
Moak9-Jan-03 15:32
Moak9-Jan-03 15:32 
AnswerRe: Check visibility of a child control? Pin
Moak10-Jan-03 6:43
Moak10-Jan-03 6:43 
GeneralI am in DLL Hell.. :( Pin
VanHlebar9-Jan-03 14:43
VanHlebar9-Jan-03 14:43 
GeneralRe: I am in DLL Hell.. :( Pin
Rick York9-Jan-03 15:15
mveRick York9-Jan-03 15:15 
GeneralRe: I am in DLL Hell.. :( Pin
VanHlebar9-Jan-03 16:43
VanHlebar9-Jan-03 16:43 
GeneralRe: I am in DLL Hell.. :( Pin
Chris Richardson9-Jan-03 17:57
Chris Richardson9-Jan-03 17:57 
GeneralRe: I am in DLL Hell.. :( Pin
Rickard Andersson209-Jan-03 21:45
Rickard Andersson209-Jan-03 21:45 

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.