How come C++ project in Visual Studio Community 2015 only contain Universal Apps? - c++

First, let me show you what I have..
Visual Studio Community 2015 installed with customization as follows..
Windows 10 Home (x64)
I tried creating C++ project with Win32 and standard C++11 support but I couldn't find any under "File > New > Project > Installed > Templates > Visual C++ > Windows". (Universal Windows App is the only option here ...)
I wish that the subpaths under my "File > New > Project > Installed > Templates > Visual C++ > Windows" have all three items that Visual C# and Basic already have underneath ("Universal", "Windows 8", "Classic Desktop"). To be more specific, I wish my "Visual C++ > Windows" to look like this..
I know that I can code Win32/C++ using "Universal Windows Apps" template but Win32 support is limited and it comes with bunch of .Net stuff that I don't need. Please don't get me wrong, I do love .Net and WPF and I myself was once a C# programmer (WinForm in particular) and I think of .Net to be the future of Windows development but right now I need to start with empty project with Win32/C++ support.
Is this problem confined to Community version only? (anyone tried VS2015 Pro/Ent ? please let me know)
EDIT:
Definitely can't be a solution to this problem.. but I found that I can circumvent the problem as below:
Here's how it works. Instead of searching for templates in "Installed > Visual C++ > Windows", I just go to "Installed > Samples > Visual C++ > Desktop" and Hurray! I see a Win32 "C++ UTF-8 Conversion Helpers" sample. I'll just use it to create projects and then discard anything unnecessary to make it empty. One hell of a pathetic approach just to get an empty C++ project :(
EDIT:
I posted the same question on Microsoft Developer Network. After another day of trials and errors, this is the furthest I went. Still no sign of "Classic Desktop" under C++

Finally, I found an answer to this problem....
I was so stupid to keep on launching vs-community using the wrong shortcut.
If you want to see all the C++ templates (including win32,MFC,ATL,...), you must use the shortcut "Visual Studio 2015" not the "Blend for Visual Studio 2015" (screenshot)
There are two shortcuts after you install Visual Studio Community 2015.
As you see, they each point to the different target.
So you need to use the shortcut that runs "devenv.exe" not the "Blend.exe".
But its strange that the first launch after the ISO installation launches "devenv.exe" but the web installer(vs_community.exe) launches "Blend.exe".
I guess I'm the only one here who made such a stupid mistake.
May be I should delete this question if not so many find it useful.

I had the same problem, however, the only way i was able to get win32 c++ was to install the c++ packages.

Related

Add WIN32 Console Project Template To Visual Studio Community 2017 15.5.2?

I recently installed Visual Studio Community 2017 15.5.2 version for C++ basically and I am unable to find the option of Win32 Console Application.
I have already read many post to fix it but can't. Yes, I have installed C++ in VS. I have installed the following workloads:
Desktop development with C++ and
.NET desktop development.
I have tried to install packages through VS command prompt but it didn't fix my issue. I have tried reinstalling it and repairing it but didn't find anything. I tried to find it in File -> New -> Project -> Visual C++ -> Windows Desktop -> Windows Desktop Wizard -> ... but there was no option.
I want to develop simple games in C++ so i need Win32 console application option in VS. I have installed similar packages in the VS installer but it didn't help!
I have looked for it in many options but didn't got what i wanted! I have also read many posts and forums to fix it but cannot. I almost tried everything they said in those forums!
If someone knows the solution please explain it briefly and tell me which packages to install or what to do?
Also tell me possible reasons for the cause so i can fix it on my own. And if not possible tell me an alternative to it.
seems that your not alone. The problem is know well, and already asked in Microsoft forum.
From their side they say not change has been apply in last updates, just few re-implement.
You may see same question here: https://developercommunity.visualstudio.com/content/problem/93159/cant-find-win32-console-application-for-new-projec.html
In that case, what i would suggest you, is to install VS 2015 that still working well.
Good luck body.

Visual Studio 2015: Can't create a new empty project c++

I recently got the new version of Visual Studio and I can't seem to find how to create an empty project for C++. The options seem to be only C# and Basic.
The default (typical) installation of Visual Studio 2015 no longer contains the C++ compiler and tools. This was a very popular ask from the community as many developers do not want the footprint C++ brings.
If you go and try to uninstall Visual Studio 2015, the installer screen will pop up and you'll see a button named "Modify". This will change your current installation. Do a custom install and pick the C++ features / libraries that you require.
As far as I know, most editions have C++ support, including Express for Windows, Express for Desktop and the popular Community edition.
Try to open VS with Admin's rights. I tried it, and it works!

Visual Studio 2010/2012 Add-in Project Questions

I have already created a simple source code analyses tool for C/C++, but I wanted it to be an extension or tool for Visual Studio 2010 and 2012 editions. It is written completely in C++. For this reason I created it using "Create an Add-in using Visual C++/ATL" option. And then under "Choose Add-in Options", I have some problems. I don't know which one or ones to select. I want it to have a name and icon under Tools section, but on the other hand, my code analyzer can be used from command line too. If someone can advice me which option(s) to select there I would be glad.
My second question is this, when I have opened a source file in Visual Studio, and if I go to Tools -> MyAddin, and press it, I want it to do its job and analyze the code, and show the results in the output section below.
And my last question is that, if I have a C/C++ project with few files let's say, and if I right-click one of the files, I want to see my add-in and be able to execute the add-in from there, not to go always to Tools -> MyAddin. And also the same thing to work if I right-click the project, then it should analyze the all files and show the problems in the output section.
Please note that I have already created the source code analyzer tool in C++, and I have it as a DLL. I can also use it in Linux from terminal, and if I want I can also create a GUI for it, which I plan to do later. But I'm not that much experienced with Visual Studio, especially about add-ins, that's why I need your help. As you can see my first question is a kind of advice, but I think my second and third questions require some source code. I know that it is very hard for you to give me some help without seeing my code, but if you would help me somehow I would be glad.
For Visual Studio 2010 and 2012 you should consider using Extensions, not Add-Ins. It is a new technology introduced in Visual Studio 2010. Extensions come in form of a VSIX packages and are automatically installed in all applicable versions of Visual Studio. If you are not targeting Visual Studio version prior to 2010, I strongly recommend using extensions.
From this point of view, I will not answer any of your technical questions about Add-Ins. Here are a couple of links to start using extensions instead:
Anatomy of a VSIX Package
Building and publishing an extension for Visual Studio 2010
VSX FAQ
Walkthrough: Creating an Options Page
I think you will find valuable information on this topic here: Developing extension packages for Visual Studio 2005/2008/2010/2012 using C# with real-life samples

No MFC templates available for a new C++ project - Visual C++ Express

i've been googling before posting this but i havent been able to find anything on the topic.. yet i dont think its a very tricky one so please forgive for posting :o).
for a new job i am getting into C++, and following some tutorials. in particular one is about MFC, it shows how to create a project , selecting MFC application and so on. So, i installed Visual C++ Express 2010 on both a vista and a Win 7, and both time i had the same issue: when i go to new project , I have no "MFC" menu . some screenshots from that tutorial , and from some other on Visual C++ 2010 clearly show that it can be there. to be more specific, on corner left I have "installed templates" , then "Visual C++" and "CLR", Win32" and "General" , no MFC.
as these are "installed templates", i guess i should have to install it, but i found no clear indication on the topic; from what i found it should more or less be there from the beginning ... i also found a way to add MFC DLL through creating a Win32 application, but it doesnt seem its exactly the same thing .. I spent also some time on the menus of Visual C++ but did not find any clear way to add new templates like in Eclipse...
Well, I hope I made myself clear, i think this is pretty basic but if anyone could give me a hand on that one i'd greatly appreciate.
Cheers
Vincent
Visual Studio C++ Express does not support creating MFC applications.
If you don`t mind the leaking of unicode support, you can downlaod the visual studio 2013 express for desktop and install the free mfc mbcs supportfrom microsoft.com

Visual Studio 2008 C++ language support?

I've been developing a couple of C# tools recently, but primarily working with a lot of legacy Visual Basic 6.0 code (I know, I know...). For the C# development, I've been using Visual Studio 2008 Professional edition that I downloaded using our MSDN subscription here at work.
But, as a change of pace over the weekend, I was going to check out a complex C++ project that we have. However, when I went to open it through Visual Studio, it wouldn't open it saying that the .vcproj file type wasn't supported. I figured it was a compatibility issue and that the project file type had changed between versions of Visual Studio, but when I tried creating a new C++ application inside Visual Studio 2008 Pro, the option just wasn't there.
I've been searching online by way of Bing, Google, MSDN, and MSDN subscriber downloads to no avail. Nothing I've found so far explains why this is happening.
I have found the express edition of MS Visual C++ 2008, but I could not locate the "full version" of this part of Visual Studio.
Any help would be much appreciated.
It sounds like you haven't got it installed.
Go to Add/Remove Programs (or Programs and Features, or whatever Windows 7 calls it) and modify your installation. You'll get a list of checkboxes so you can install C#, VB.NET, Crystal Reports etc... and Visual C++. Check that checkbox and wait the hour or so for the installer to do its stuff.