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

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

Related

Visual Studio MFC C++ "CFormView" Missing from "base class" drop down

I am a beginner learning Visual Studio 2019 Community. Specifically MFC C++.
It is challenging as I am struggling to find good reference material and examples. Youtube has been very helpful for tutorials and examples. However, all the information I have found are using earlier versions of Visual Studio which are not a step by step process. I have found myself doing additional research or experimenting to find the same tool used in the example.
My current issue is the example creates a new class with the base class type of "CFormView". However no such value exists in my version of Visual Studio.
With that being said. I have two questions.
Please advise on how to create a CformView class in VS.
Is there any good quick learning guides for MFC in VS 2019? It would be great to have tutorials.
Thank you in advance.
VS2017 and VS2019 have become difficult development environments to continue program development with MFC/ATL.
If you want Wizard-guided development as you've seen in previous books and resources, the best shortcut is to go back to VS2015 and port the results to VS2017 or VS2019.
I have similar answers to similar questions several times.
For example, see these answers and their links.
How to add database to MFC project in Visual Studio 2017?
I am missing the Add new item Add "MFC Class From Typelib" in VS-2019
The big ATL wizard misery.
Deprecations - Visual Studio 2019
Add ATL Simple Object in Visual Studio 2017
Changes to Project Templates and Code Wizards in 15.3
Visual Studio 2017 version 15.3 Release Notes

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.

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

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.

New ATL COM project in Visual C++ 2010 Express: Missing Template

I have a feeling that this is a pretty silly and basic question, but I've been struggling with this for a tad too long today. I am attempting to make a shell extension for Windows following this guide (as well as several others that I have stumbled upon, but that one is the most notable). The issue is that they all start off saying "Run the AppWizard and make a new ATL COM program." However, these are the only project wizards I have in my Visual C++ 2010 Express.
Where can I find this magic project template? Even Microsoft seems to think I should already have it.
AFAIK frameworks MFC, ATL possibly others are not part of the Express edition, to have them you need one of the non-free versions. but there are some interesting links

Visual Studio C++ Project

Ok, this question is incredibly basic and I'm probably missing something blatantly obvious. But I just downloaded Visual Studio 2012 on Windows 8 because I'm relearning C++. And I cannot, for the life of me, find how to create a basic C++ project. Nothing special. Just a blank C++ project containing files with the .cpp extension. In VS, I go to File>New Project>Installed>Templates>Visual C++. All that's in there is xaml related or other far more complicated stuff than what I want to deal with (e.g. Direct3D App).
Thanks in advance.
You should find something similar to:
If you downloaded Visual Studio Express 2012, make sure you obtained the correct version (Windows, Web, Phone, etc.).