I'm using VC++6 and I've created MFC dialog,and now I want to add functionallity.
I have 3 classes already made,but cant add them to project and compile.
I've added files in file view and included .h files in stdafx.h and here is what I get:
Code:#if !defined(AFX_STDAFX_H__6BF529B9_3795_4AE3_9A72_3FADC2FA5C53__INCLUDED_) #define AFX_STDAFX_H__6BF529B9_3795_4AE3_9A72_3FADC2FA5C53__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdisp.h> // MFC Automation classes #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //======================================== #include <Main.h> // I INCLUDED 3 HEADERS HERE #include <Mail.h> #include <Mail1.h> //======================================== //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__6BF529B9_3795_4AE3_9A72_3FADC2FA5C53__INCLUDED_)
here's the error:
I copied .h and .cpp files in project directory.Code:fatal error C1083: Cannot open include file: 'Main.h': No such file or directory




Reply With Quote