Fatal Error C1083 Afxwin.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error c1083 “afxwin.h” up vote 0 down vote favorite 1 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot open include file 'afxwin.h':no such header fileor directory in vs 2013 c++ up vote 5 down vote favorite 1 http://stackoverflow.com/questions/18461701/fatal-error-c1083-afxwin-h So,I am trying to port some old code to newer version of vs so I imported the sln of the project into my vs 2013 and I get this error and some others and I have gone through some of the other questions on this forum.So I understand that this has something to do with MFC(microsoft foundation classes) but all of them talk about vs 2010 express edition which doesn't include MFC module.I http://stackoverflow.com/questions/29005459/cannot-open-include-file-afxwin-hno-such-header-fileor-directory-in-vs-2013-c am currently using vs 2013 community edition which is supposed to have full feature access of vs.Still I get this error so please help!! Thanks! c++ visual-c++ visual-studio-2013 mfc visual-c++-2013 share|improve this question asked Mar 12 '15 at 9:00 Koundinya Poluri 2815 So the question is are you sure that afxwin.h is in vs2013? Have you searched your system and is the path to where it resides correct? –EdChum Mar 12 '15 at 9:01 Remove the #include, fix if possible the resulting errors by adding other #include(s). The MSDN site will tell you which headers are needed for which functions. –Richard Critten Mar 12 '15 at 9:10 @EdChum Thanks for this prompt response! I have checked in the include folder of vc folder,But I cannot find those headers!! :( –Koundinya Poluri Mar 12 '15 at 9:19 @Richard Thanks for replying, I did think of that but then again there are too many headers in stdafx.h, So i convinced myself to mark it plan B :) –Koundinya Poluri Mar 12 '15 at 9:22 add a comment| 1 Answer 1 active oldest votes up vote 12 down vote accepted While installing Visual Studio 2013, you need to select the MFC option: share|improve this answer answered May 21 '15 at 21:01 Raman Sh
Sign in Pricing Blog Support Search GitHub This repository Watch 319 Star 1,771 Fork 1,000 ValveSoftware/source-sdk-2013 Code Issues 138 Pull requests 30 Projects 0 Pulse https://github.com/ValveSoftware/source-sdk-2013/issues/143 Graphs New issue Building error - "Cannot open include file" ('afxwin.h' and 'atlbase.h') http://www.dreamincode.net/forums/topic/327581-missing-afxwinh-for-visualc-in-win7/ #143 Closed peterhisham opened this Issue Aug 3, 2013 · 9 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants peterhisham commented Aug 3, 2013 I'm using Microsoft Visual C++ 2010 Express. When I try to build the solution fatal error "everything.sln" it says there are 2 missing files. Below is a screenshot and the message. 1>------ Build started: Project: QC_Eyes, Configuration: Debug Win32 ------ 2>------ Build started: Project: Phonemeextractor, Configuration: Debug Win32 ------ 2> phonemeextractor.cpp 1> StdAfx.cpp 1>c:\users\joana\downloads\cenas\source-sdk-2013-master\source-sdk-2013-master\mp\src\utils\qc_eyes\stdafx.h(16): fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory 2>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\sphelper.h(46): fatal error C1083: Cannot open include fatal error c1083 file: 'atlbase.h': No such file or directory ========== Build: 0 succeeded, 2 failed, 20 up-to-date, 0 skipped ========== fuzzzzzz commented Aug 4, 2013 #58 you need ServicePack 1 for visual studio 2010 #21 and with phoneme extractor you need Sapi sdk dsezen commented Aug 4, 2013 You need the Windows Platform SDK to get afxwin.h/atlbase.h, not service pack 1 (though you should install that too). ghost commented Aug 4, 2013 To my knowledge, I have seen this kind of issue related to the fact that the commerial version of Microsoft Visual studio is required in order to gain access to these files. They were removed from the express editions after 2008. Here is a link to an article explaining this problem. http://stackoverflow.com/questions/2681050/atlbase-h-not-found-when-using-visual-c-express-2010 peterhisham commented Aug 4, 2013 I already had SP1 for Express. However, I acquired the professional edition now. Those errors disappeared, but now there is a new one. cannot open input file '..\sapi51\lib\i386\sapi.lib' Anyone have any idea? fuzzzzzz commented Aug 4, 2013 #21 you need to install the sapi sdk and add it in src/thirdparty/ peterhisham commented Aug 4, 2013 https://developer.valvesoftware.
of 1 New Topic/Question Reply 9 Replies - 19643 Views - Last Post: 01 September 2013 - 01:24 AM Rate Topic: #1 rabbitz New D.I.C Head Reputation: 0 Posts: 7 Joined: 17-August 13 Missing "afxwin.h" for VisualC++ in Win7 Posted 23 August 2013 - 07:17 PM I need modify some example application code, but the compiler report error message: " fatal error C1083: Cannot open include file: 'afxwin.h'". I believe the orginal code pass WinXP with VisualStudio 2005. I am using Win7 and Visual Studio Express 2008, is the Win7 causing problem? or Express version doesn't have the 'afxwin.h'? And how to fix this problem? Regards Sam Is This A Good Question/Topic? 0 Back to top MultiQuote Quote + Reply Replies To: Missing "afxwin.h" for VisualC++ in Win7 #2 Skydiver Code herder Reputation: 5149 Posts: 17,053 Joined: 05-May 12 Re: Missing "afxwin.h" for VisualC++ in Win7 Posted 23 August 2013 - 08:13 PM afxwin.h is a MFC header file. As I recall, the Express editions of Visual Studio don't come with MFC. The code project article should help you get unstuck. Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #3 rabbitz New D.I.C Head Reputation: 0 Posts: 7 Joined: 17-August 13 Re: Missing "afxwin.h" for VisualC++ in Win7 Posted 24 August 2013 - 04:38 AM Skydiver, on 23 August 2013 - 08:13 PM, said:afxwin.h is a MFC header file. As I recall, the Express editions of Visual Studio don't come with MFC. The code project article should help you get unstuck.Where is "Code Project article"? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #4 Skydiver Code herder Reputation: 5149 Posts: 17,053 Joined: 05-May 12 Re: Missing "afxwin.h" for VisualC++ in Win7 Posted 24 August 2013 - 07:42 AM Oops. I thought I put in the hyperlink, but I much have hit the Post button instead of the Insert button. Here's the link: http://www.codeproje...isual-C-Express Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #5 rabbitz New D.I.C Head Reputation: 0 Posts: 7 Joined: 17-August 13 Re: Missing "afxwin.h" for VisualC++ in Win7 Posted 31 August 2013 - 06:30 AM rabbitz, on 24 August 2013 - 04:38 AM, said:Skydiver, on 23 August 2013 - 08:13 PM, said:afxwin.h is a MFC header file. As I recall, the Express editions of Visual Studio don't come with MFC. The code project article should help you get unstuck. Where is "Code Project article"? Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #6 Skydiver Code herder Reputation: 5149 Posts: 17,053 Joined: 05-May 12 Re: Missing "afxwin.