Visual Studio 2015 failed to create and edit c++ projects - c++

I have a trouble with C++ projects in Visual Studio 2015 Community Edition.
First of all I cannot create new c++ project (simple console application). When I click on "OK" button in "New Project" wizard the window hide and show up again. (Nothing happened)
Second problem. When I open existing project and try to edit C++ setting I only see "Configuration Properties".
I've already tried "Repair" in VS2015 intaller and it doesn't help. Can anyone help me?

According the official site, this is a ugly and strange bug of some VS updates:
https://msdn.microsoft.com/en-us/vs-knownissues/vs2015-update3
In some cases, applying Updates to VS 2015 can cause the optional feature selections for Visual C++ (e.g. Common Tools for Visual C++ 2015) to become deselected and uninstalled. This issue can be resolved by re-selecting the required Visual C++ features in the Visual Studio 2015 setup dialog.
In "Programs and Features" (Add/Remove Programs), select "Microsoft Visual Studio 2015", then click "Change".
In the Visual Studio setup dialog, click "Modify"
Select/check "Programming Languages->Visual C++->Common Tools for Visual C++ 2015" and other features under "Programming Languages->Visual C++", as appropriate.
Click "UPDATE".

Related

Visual Studio 2017 Build Configuration Missing

I have Visual Studio 2017 Community 15.7.2 installed. The build configuration drop down options disappear. I have been having Problems with the build configuration disappearing on my work machine (Visual Studio 2017 Enterprise 15.8.2) as well.
If I create a new project File -> New Project -> Web -> ASP.Net Web Application (.Net Framework).
The build configuration option shows up. Then if I click on a controller class e.g. HomeController.cs. The option clears out.
The option will show up again after changing "Show output from" under the Output window. If I bring up a .cs file again. The build option disappears:
Is this now a normal behavior in Visual Studio? I suspect a bug in Visual Studio and have been updating more often than usual in attempt to fix it.
The latest update to Visual Studio Community 2017 (15.8.4) did not fix the problem.
Go through each of the Tools -> Extensions and Updates and disable an extension and then restart Visual Studio. Start with ones that aren't created by Microsoft.
Repeat this until you have tried all the extensions.

Download c++ in existing visual studio 2017

I downloaded the visual studio 2017 with c# and xamarin when it gave me a lot of choices at installation time, now I want to install c++ also in existing vs2017. How can I do that? I don't want to install the whole visual studio again.
1.Go to Control panel
2.In the Add or Remove Programs dialog box, select the product you want to repair and then click Change/Remove
3.In the Setup wizard, click Next
4.Click Repair
5.Then Modify it by selecting C++ to add it.
Note : This work in Window OS only
Alternative answer (less searching needed) : Visual Studio 2017 also adds the " Visual Studio Installer" directly to the Windows Start Menu (this is the same executable used by #John Joe's answer).

Can't find template for C++ in Visual Studio 2015

I bought a new laptop and Visual Studio was already installed in it, I want to write programs in C++ in Visual Studio 2015, but I could not find the template for C++. There are blank templates available for different languages but not for C++. Please help me out.
Visual Studio works with a lot of languages. There are a lot of version Of VS too. So:
Click Start, click Control Panel, and then click Programs, Click Programs and Features and then select the Visual Studio Edition. Click Uninstall/Change. In the setup wizard, select Modify and then click Next. Select C++ in list of languages.
OR
Go to Microsoft and download Community version of Visual C++ (MS)

How to create an "ATL Project" in Visual Studio Community 2015?

This 2004 tutorial tells me to choose Visual C++ Project / ATL Project in the Visual Studio new project wizard.
PROBLEM: The ATL project type does not seem to exist in my Visual Studio Community 2015.
QUESTION: How to make this option appear? If impossible, what is the nearest option? Tho goal is to write a shell extension in C++.
ATL project support was not installed. To fix this:
Click on the Install Visual C++ 2015 Tools seen in the screenshot above.
Let the download and installation happen
Open the New Project dialog again: The New ATL Project option should appear.
It is doable with the Community version.

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.