Can't install missing features on Visual Studio 2015 on Windows 10 - c++

I'm working with cocos2d-x framework for c++ using Visual Studio 2015 Community on Windows 10.
When I try to open a solution for a created project, visual studio says some projects are unavailable. When I right click and go to "install missing feature(s)", visual studio says I have to install "Windows XP support for C++".
When I click to install I get a "Setup - Usage" window(that seems to be bigger than my screen). I don't see any button, so I hit enter, but nothing happens. Nothing downloads and nothing installs...
Does anyone have a solution to this?
The message is as follows:
Install Windows XP support for C++
Windows 7.1 SDK for targeting Windows XP
The following projects will not be loaded unless you install the above
feature

All that's needed is to add in Windows XP Support via the installation tool accessible from Control Panel. Steps:
Close Visual Studio 2015
Open Control Panel
Select 'Programs and Options'
Right click on 'Microsoft Visual Studio Professional 2016'
Select 'Change' from the menu (the only option)
Once the installation tool has set up, select 'Modify'
Expand Programming Languages --> Visual C++
Select 'Windows XP Support for C++'.
Proceed with the update.
Note that selecting 'Windows XP Support for C++' automatically selects its dependencies, 'Windows 8.1 SDK and Universal CRT SDK' and 'Common Tools for Visual C++ 2015'.
What I think might have happened for the OP was that in selecting Universal Windows App Development Tools and various C++ options, they hit upon 'Windows XP Support for C++' itself or something that had it as a dependency. So they may have various components installed unnecessarily now. :-(

got your point.
Here are the steps to install it properly.
Go to the below site and try to install it. & select the option as per the snapshot attached here.
https://www.microsoft.com/en-us/download/details.aspx?id=53587
Also, if required, please refer to the below blog.
https://devblogs.microsoft.com/cppblog/setup-changes-in-visual-studio-2015-affecting-c-developers/

Related

No console application in Visual Studio 2015?

I know this might sound extremely dumb, but I can't find the console application template in visual studio 2015. When installed I clicked on custom and selected everything so I wouldn't have to go through the hassle of adding files later on so of course I have visual c++ installed. But for some reason there's no console application template.
Any ideas?
I'm using the community edition.
It's located under Templates->Visual C++->Win32->Win32 Console Application.
If you cannot find it there, it probably means you did not install the Windows SDK. Go to the Control Panel->Programs and Features, select Microsoft Visual Studio Community 2015, right click on it and select Change.
The SDK is hidden quite well in the list of installable features. You can find it under Windows and Web Development->Universal Windows App Development Tools. Make sure the Windows 10 SDK is selected. By default it's not and I tend to forget to check it when installing VS2015 because it's so damn well hidden.
SOLVED !!!
it is generally with windows 10 or xp
so when you go to visual c++ there is option of install windows support for ...
and let it download
bingo!!
next time you can see it there
install these two
after installation
I have same problem. This is the way of show before i fix it.
then check you have proper internet connection. net double click and install both. now you can create c++ project.
This is new appearance..
thank you.
Unable to download using VS2015 installer. Even when set to download from internet it will fail
Better download winsdksetup.exe at https://developer.microsoft.com/es-es/windows/downloads/sdk-archive/

Universal Windows App Template Not installed

First of all let me make you clear you that, I am using Visual Studio Community 2015 update 1 and I am running on Windows 10 Pro.
As with update version of Visual studio I find inside Visual c#\Windows\Universal Tab that to install Universal Windows Tools.Also,I let you know that all other templates inside Visual C# Tab are installed and I can use them.
I have tried lot's of solutions to install them,still find the same.I have tried to modify VS from the installer package found under Program and Features in Control Panel.And also I have put for direct installation from that template Tab and selected all the necessary Tools from the Installation window.
What can I do next??
Open control panel->programs & features->installed Programs, select Visual Studio 2015 and click on modify. Now select the Universal Windows App Development Tools and click ok to install them. Now you should see the entries in Visual Studio.
A fresh install is required. So, if you are planning to Modify the setup, this will not work as it will not show the check box for Windows 10 SDK.
There are two ways:
1. Uninstall and reinstall the latest build -> Visual Studio Community 2015 - Update 3 as of now.
Install the preview edition, this requires 28GB, but you can customize your installation.
Install the Windows 10 sdk separately. Just go on http://dev.windows.com
I got the solution guys!!!
If you had upgraded your VS to VS update 1 or to any newer versions and i you get this error,then you need to try to uninstall VS completely and reinstall it and put tick on checkbox for 'Tools for Windows App and Windows 10 SDK' from the installation window.
Then your Project window gets the Universal Windows template installed...

MFC Multibyte Add-on for Visual Studio 2015 Express for Desktop

I'm using VS 2015 Express for Desktop which doesn't have MFC Multibyte support by default.
Not long ago there was a separate MFC MBCS DLL Add-on.
But now link to Multibyte MFC Library for Visual Studio 2015 is removed.
That was done because all other VS editions have "Microsoft Foundation Classes for C++" optional install component:
But VS 2015 Express for Desktop lacks it (it has no optional install components, no "Custom" installation at all)
So the questions are:
Maybe someone has a backup link to the download Multibyte MFC Library for Visual Studio 2015?
I've also downloaded VS 2015 Community Edition ISO. In the \packages\VisualC_D14 there are several VC_MFC.* folders (VC_MFC.MBCS among them). But trying to run executables inside that folder leads to an error
Maybe someone knows howto install that components without running whole VS 2015 Community Edition setup?
Thank you in advance.
P.S. Installing VS 2015 Community Edition instead of VS 2015 Express for Desktop is not suitable for my company due to license limitations (we are enterprise organization - over 250 PCs - and use VS for commercial purposes).
Unfortunately changing the character set from multibyte to Unicode in our projects is also not an option for us now.
I have one solution for this. kindly follow the steps to add MFC for C++
step 1: close any Opened Visual Studio.
Step 2: open a Visual Studio and choose File->New -> Project
Step 3: In New Project Pop UP, Select Templates->Visual C++ -> MFC
Step 4: In the Listed Project/files, you will see "Install Microsoft
Foundation classes for C++". Double Click on it.
Step 5: "Install Missing Features" Popup Come with two Button
"Install and Cancel". Saying "Install Microsoft Foundation Classes
for C++. You Simple Click on "Install".
Step 6: Important "Close the opened VS" and you will see Visual
Studio Setup Wizard come with option "Microsoft Foundation Classes"
Within Features Tab. Just Click on "Next" and then a new Window
Appear click on "Update". Your MFC will start updating.
Step 7: Enjoy coding.....
As far as I see my installation the files are always installed if you install the MFC.
I just rechecked it on a different machine. The appropriate MBCS libs are installed by Default, when you choose MFC in the installation of VS-2015.

Enabling MSVC10 Platform toolset in VS2012 64bit project [duplicate]

Is there a simple way to compile a 64 bit app with the 32-bit edition of Visual C++ 2010 Express? What configurations, if any, are necessary?
Here are step by step instructions:
Download and install the Windows Software Development Kit version 7.1. Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. A link to the SDK: http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx
Change your project configuration. Go to Properties of your project. On the top of the dialog box there will be a "Configuration" drop-down menu. Make sure that selects "All Configurations." There will also be a "Platform" drop-down that will read "Win32." Finally on the right there is a "Configuration Manager" button - press it. In the dialog that comes up, find your project, hit the Platform drop-down, select New, then select x64. Now change the "Active solution platform" drop-down menu to "x64." When you return to the Properties dialog box, the "Platform" drop-down should now read "x64."
Finally, change your toolset. In the Properties menu of your project, under Configuration Properties | General, change Platform Toolset from "v100" to "Windows7.1SDK".
These steps have worked for me, anyway. Some more details on step 2 can be found in a reference from Microsoft that a previous poster mentioned: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx.
64-bit tools are not available on
Visual C++ Express by default. To
enable 64-bit tools on Visual C++
Express, install the Windows Software
Development Kit (SDK) in addition to
Visual C++ Express. Otherwise, an
error occurs when you attempt to
configure a project to target a 64-bit
platform using Visual C++ Express.
How to: Configure Visual C++ Projects to Target 64-Bit Platforms
Ref:
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
And make sure you download the Windows7.1 SDK, not just the Windows 7 one. That caused me a lot of head pounding.
I found an important step to add to this - after you've installed the SDK, go to your project properties and change Configuration Properties->General->Platform Toolset from v100 or whatever it is to Windows7.1SDK. This changes $(WindowsSdkDir) to the proper place and seemed to solve some other difficulties I was encountering as well.
Note that Visual C++ compilers are removed when you upgrade Visual Studio 2010 Professional or Visual Studio 2010 Express to Visual Studio 2010 SP1 if Windows SDK v7.1 is installed.
For instructions on resolving this, see KB2519277 on the Microsoft Support site.
Download the Windows SDK and then go to View->Properties->Configuration Manager->Active Solution Platform->New->x64.
Programming in a 64-bit environment is quite different than 32-bit environment.
Code generated has totally different assembly constitution in 32 & 64-bit code, even the protocols of communicating with functions change. So you can't generate 64-bit code using 32-bit compiler.
You might want to see an article on Microsoft's web site about targeting a 64-bit target but using a 32-bit development machine.
As what Jakob said: windows sdk 7.1 cannot be installed if MS VC++ x64 and x86 runtimes and redisrtibutables of version 10.0.40219 are present. after removing them win sdk install is okay, VS C++ SP1 can be installed fine again.
Kind regards

How to compile a 64-bit application using Visual C++ 2010 Express?

Is there a simple way to compile a 64 bit app with the 32-bit edition of Visual C++ 2010 Express? What configurations, if any, are necessary?
Here are step by step instructions:
Download and install the Windows Software Development Kit version 7.1. Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. A link to the SDK: http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx
Change your project configuration. Go to Properties of your project. On the top of the dialog box there will be a "Configuration" drop-down menu. Make sure that selects "All Configurations." There will also be a "Platform" drop-down that will read "Win32." Finally on the right there is a "Configuration Manager" button - press it. In the dialog that comes up, find your project, hit the Platform drop-down, select New, then select x64. Now change the "Active solution platform" drop-down menu to "x64." When you return to the Properties dialog box, the "Platform" drop-down should now read "x64."
Finally, change your toolset. In the Properties menu of your project, under Configuration Properties | General, change Platform Toolset from "v100" to "Windows7.1SDK".
These steps have worked for me, anyway. Some more details on step 2 can be found in a reference from Microsoft that a previous poster mentioned: http://msdn.microsoft.com/en-us/library/9yb4317s.aspx.
64-bit tools are not available on
Visual C++ Express by default. To
enable 64-bit tools on Visual C++
Express, install the Windows Software
Development Kit (SDK) in addition to
Visual C++ Express. Otherwise, an
error occurs when you attempt to
configure a project to target a 64-bit
platform using Visual C++ Express.
How to: Configure Visual C++ Projects to Target 64-Bit Platforms
Ref:
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
And make sure you download the Windows7.1 SDK, not just the Windows 7 one. That caused me a lot of head pounding.
I found an important step to add to this - after you've installed the SDK, go to your project properties and change Configuration Properties->General->Platform Toolset from v100 or whatever it is to Windows7.1SDK. This changes $(WindowsSdkDir) to the proper place and seemed to solve some other difficulties I was encountering as well.
Note that Visual C++ compilers are removed when you upgrade Visual Studio 2010 Professional or Visual Studio 2010 Express to Visual Studio 2010 SP1 if Windows SDK v7.1 is installed.
For instructions on resolving this, see KB2519277 on the Microsoft Support site.
Download the Windows SDK and then go to View->Properties->Configuration Manager->Active Solution Platform->New->x64.
Programming in a 64-bit environment is quite different than 32-bit environment.
Code generated has totally different assembly constitution in 32 & 64-bit code, even the protocols of communicating with functions change. So you can't generate 64-bit code using 32-bit compiler.
You might want to see an article on Microsoft's web site about targeting a 64-bit target but using a 32-bit development machine.
As what Jakob said: windows sdk 7.1 cannot be installed if MS VC++ x64 and x86 runtimes and redisrtibutables of version 10.0.40219 are present. after removing them win sdk install is okay, VS C++ SP1 can be installed fine again.
Kind regards