Cannot open include file 'afxwin.h':no such header fileor directory in vs 2013 c++ - c++

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 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!

While installing Visual Studio 2013, you need to select the MFC option:

Related

TightVNC on VS2015 compile from source code

I am trying to compile the TightVNC from the source code.
Here is my system details:
Windows 10
SDK 8.1
When i build the project it throw error about the folder or file not found. I try to install and include the files but it won't worked.
sidenote: I am not a C++ developer, i have to compile it from source code.
Thanks in advance.
The error
RC1015 can't open include file afxres.h
seems to generate from project because it requires the header file from MFC. As far as I understand, visual studio 2015 default setup does not install Visual C++ MFC package. Therefore you need to modify the Visual Studio 2015 setup and add the MFC.
Please close VS2015 and Go To
Control Panel->Programs and Features->
Microsoft Visual Studio <Professional/Enterprise>->
Change->Modify->Add Microsoft Foundation Classes
Then re-open visual studio 2015 and re-build the solution.

Open a vdproj file with VS Community 2017?

I retrieved a C++ VS project from 2011 and it has a Install-win32.vdproj I guess it has to be the file I need to open in order to build the project.
Unfortunately Visual Studio 2017 seems not to recognize this kind of file. Is there any ways to interpret it or convert it?
For VS2017, use the Microsoft Visual Studio Installer Projects. Download link is below. Be sure to close Visual Studio before running the installer:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2017InstallerProjects

Visual Studio doesn't recognize Unreal Engine

I'm a student in Videogame Development, and just starting out looking at Unreal.
And no, none of my teachers know anything about this.
I have installed Unreal Engine 4.13 and Visual Studio Community 2013 now 2015.
I'm trying to make a C++ project using Unreal Engine (using blueprints is out of question so this didn't help)
Now, when I make a basic C++ project, Visual Studio shows the following error message:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- UE4, "C:\Users\Gebruiker\MEGA\Unreal\Disposable\Intermediate\ProjectFiles\UE4.vcxproj"
- Disposable, "C:\Users\Gebruiker\MEGA\Unreal\Disposable\Intermediate\ProjectFiles\Disposable.vcxproj"
No changes required
These projects can be opened in Visual Studio 2015, Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- Engine, "Engine"
- Games, "Games"
- Disposable, "C:\Users\Gebruiker\MEGA\Unreal\Disposable\Disposable.sln"
Then my browser opens showing a Migration Report telling me that VS had an error with Project.vcxproj and UE4.vcxproj, although it copes with Engine, Games and Project.sln.
After this VS does show up without any further action, and it does automatically open *.h and *.cpp files for newly added classes in UE4.
Though it does edit and save these, it claims that all UE's code is wrong (with squiggles), and for compiling UE4 gives errors on pieces of code that apparently don't give errors on other's machines.
It would be much appreciated to be helped out, and I'm sure it would help others too who would have the same problem.
EDIT
A screenshot of the problem and configuration
EDIT 2
A screenshot of the Help -> About Visual Studio page, VS 2015 C++ highlighted
Starting with both the Unreal Engine Editor and Visual Studio closed, right click your .uproject file and select Generate Visual Studio project files, and then launch visual studio from the .sln file.
Once Visual Studio is open check your Solution Configuration is set to Development Editor. Then go to Debug > Start without Debugging (or Ctrl-F5). If everything compiles and the Editor opens again then you're good to go.
I uninstalled VS2013, installed VS2015 with all additional options checked, made a blank, new project with Unreal with just VS2015 on my pc, and now everything works fine.
Perhaps my VS2013 installation was broken, deprecated or switching version wasn't a good idea, but I can work with VS in any case now.
Also thanks to jeevcat for mentioning it!
Install newer version of the Visual Studio. VS2013 is not the latest one, VS2015 is. People report that even updating VS2013 from Update 2 to Update 4 helps resolving similar issues.

Afx Unsupported in Windows 10/ Visual Studio 2015

I retargeted an MFC solution from Visual Studio 2013 to Visual Studio 2015, but when I built it I received an error telling me the compiler could not find afxdisp.h normally found under VC->atlmfc->include . -- Of course I copied the file from the VS 2013 location, but I was wondering why it was missing? Does anyone know?
My mistake, MFC is an addon in VS, and I did not have all of it (only had ATL). I relaunched installer went to custom install and clicked MFC classes. I also installed the Multibyte MFC library from the Visual Studio Website. It is not available in the custom options.

cannot create c++ project in Visual Studio 2010

I suppose since I installed Visual Studio 2012, I cannot create C++ project in Visual Studio 2010. But, I am not sure new installation of VS 2012 is related to this problem.
The problem I am really struggling is that neither hint message nor notification are shown when I try to create a new C++ project.
I have tried several ways from google even include stackoverflow, but failed.
Is there anyone who knows any solutions or has any workarounds?
1) I wouldn't be at all surprised if installing MSVS 2012 is the culprit. VMs are Good :)
2) You should definitely look at the Windows event log (if you haven't already)
3) You can also run MSVS 2010 with logging as follows:
http://msdn.microsoft.com/en-us/library/ms241272%28VS.80%29.aspx
Devenv.exe /log "C:\My Files\MyLog.txt"
i faced the same problem in "microsoft visual studio express 2012 for window desktop" and now it's perfectly working after having gone through repair option.
If you have another version (or express edition) of visual studio installed on the same PC that is previously used to create console applications, that might be the issue. I had the same issue and I had Visual C++ 2008 on the same computer and I could either use the visual C++ for console applications or uninstall it completely. Hope this helps!