gpt4 book ai didi

c++ - fatal error c1083 "afxwin.h"

转载 作者:行者123 更新时间:2023-11-30 01:57:38 26 4
gpt4 key购买 nike

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

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

非常感谢,如果你能伸出援手。

代码:

#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++(Express 版)的免费版本中。

构建此应用程序的唯一解决方案是传递专业版。

关于c++ - fatal error c1083 "afxwin.h",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18461701/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com