本文介绍了致命错误 c1083 “afxwin.h"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很抱歉发布这个问题,编译时出现错误

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.

代码:

#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_)

推荐答案

afxwin.hMFC 和 MFC 不包含在 VC++(速成版)的免费版本中.

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.

这篇关于致命错误 c1083 “afxwin.h"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 13:34