// Relevant CSettings.h File Code #pragma once #include "stdafx.h" class CSettings { protected: double m_nXMinimum; double m_nXMaximum; // More simple variables public: CSettings(void); ~CSettings(void); // Gets and sets - No inline or virtual }; // Relevant CSettings.cpp Code #include "stdafx.h" #include "CSettings.h" CSettings::CSettings(void) { this->m_nXMinimum = -2.0; this->m_nXMaximum = 2.0; } CSettings::~CSettings(void) { } // Relevant CDoc.h Code #pragma once #include "CSettings.h" class CFracturedDoc : public CDocument { protected: // Create From Serialization Only CFracturedDoc(); DECLARE_DYNCREATE(CFracturedDoc) CSettings* m_cSettings; // No Grief here public: CSettings* GetSettings(void); }; // Relevant CDoc.cpp problem causing Code #include "stdafx.h" #include "CSettings.h" // Error with or without include #include "CFracturedDoc.h" CFracturedDoc::CFracturedDoc() { m_cSettings = new CSettings(); // Unresolved External Reference Grief }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)