June 9th, 1999, 11:06 AM
Hello,
I'm writing an SDI and I've written a subclass called CDemoDriver. I need to instantiate this in the DOC class, and the CDemoDriver also needs to reference the DOC class. So it's a two way relationship. My problem is that when I try to include the other classes' header file in each of the classes, it doens't work. For example I need to include DemoDriver.h in the Document class and vice-versa. It just acts as if the header file was not included. I have a feeling it's a simple problem but it's been driving me crazy!!
Thanks in advance!
Rich Taylor
I'm writing an SDI and I've written a subclass called CDemoDriver. I need to instantiate this in the DOC class, and the CDemoDriver also needs to reference the DOC class. So it's a two way relationship. My problem is that when I try to include the other classes' header file in each of the classes, it doens't work. For example I need to include DemoDriver.h in the Document class and vice-versa. It just acts as if the header file was not included. I have a feeling it's a simple problem but it's been driving me crazy!!
Thanks in advance!
Rich Taylor