Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error c1083 "afxwin.h"

Tags:

c++

visual-c++

I apologize for posting this question, When I compile, I get an error

fatal error C1083: Cannot open include file : 'afxwin.h' : No such file or directory

Thanks very much if you can give a hand.

code:

#if !defined(AFX_STDAFX_H__39403C06_D7D2_4132_9BC8_80C5C886FB8B__INCLUDED_)
#define AFX_STDAFX_H__39403C06_D7D2_4132_9BC8_80C5C886FB8B__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 <afxsock.h>        // MFC socket extensions

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__39403C06_D7D2_4132_9BC8_80C5C886FB8B__INCLUDED_)
like image 989
yasso Avatar asked May 01 '26 17:05

yasso


2 Answers

afxwin.h is MFC and MFC is not included in the free version of VC++ (Express Edition).

The only solution to build this application would be to pass on a Professional edition.

like image 141
Pierre Fourgeaud Avatar answered May 04 '26 05:05

Pierre Fourgeaud


Visual studio Express does not include the MFC classes.

You won't be able to build this application using Visual Studio Express.

like image 20
dare Avatar answered May 04 '26 07:05

dare