C++ win32-type project is unavailable - c++

I use Visual Studio 2017 Community Edition for C++, but I have a problem.
I need to create a win32 project (Actually I want to create a static library (.lib)) but for some reason I don't have this type of projects available!
All what I have in the Section of Visual C++ is:
Windows Desktop
Windows Console Application
Windows Desktop Application
Windows Desktop Wizard
Windows Universal
General
Empty Project
Makefile Project
Shared Items Project
ALT
ALT Project
Test
Native Unit Test Project
Qt
What should I do to get Win32 Project Template?
or is there another way to create such a project (.lib NOT .exe)?

Desktop Wizard should allow to select "Static library" on first or second page.

Related

How to create DLL project in VS2017 correctly?

I use Microsoft Visual Studio 2017 Community Edition and I want to create a C++ dll.library. I use the following manual:
https://msdn.microsoft.com/en-us/en-en/library/ms235636.aspx
However there is no manual for VS 2017, only for 2015 and below. VS 2017 haven't project type Win32 Console Application and it doesn't open Win32 Application Wizard dialog box.
How I can create C++ DLL project in VS2017?
Create the DLL project:
In this set of tasks, you create a project for your DLL, add code, and build it. To begin, start the Visual Studio IDE, and sign in if you need to. The instructions for Visual Studio 2017 version 15.3 come first. Instructions for earlier versions come later, so skip ahead if you need to.
To create a DLL project in Visual Studio 2017 version 15.3 or later
On the menu bar, choose File, New, Project to open the New Project
dialog box.
In the left pane of the New Project dialog box, expand Installed and
Visual C++ if required, and then choose Windows Desktop. In the center pane, select Windows Desktop Wizard. Enter MathLibrary in the
Name box to specify a name for the project.
Choose the OK button to dismiss the New Project dialog and start the
Windows Desktop Project wizard.
In the Windows Desktop Project wizard, under Application type,
select Dynamic Link Library (.dll).
Choose the OK button to create the project.
And To use this .dll in a client app follow this link.

Win32 Console Application missing in VS2017. How to create C++ Empty Project?

I installed the VS2017 community and I am lost: the Win32 Console Application in missing.
I don't even have template when I go to New Project and also I cannot create C++ Empty Project in VS2017.
How I can solve it?
Install all the optional tools for c++ development
then follow these steps ( Microsoft has updated its visual studio and there are some minor changes)
The new updated changed some things. Win32 Console Application is gone in the new update. Go to File -> New Project -> Visual C++ -> Windows Desktop -> Windows Desktop Wizard -> Application type: Console Application (.exe), Additional Options: Empty Project
Then have fun!
You just need to install "Visual Studio C++ core features". Don't install everything about C++. It consumes too much storage and possibly slow down your IDE.
Steps:
Open Visual Studio 2017 Installer.
Select "Individual Components" tab.
Select "Visual Studio C++ core features".
That's all.
If you are not interested in Game or Mobile C++ development you can remove your selections in "Workloads" tab to get free space in your hard drive :)

Where is the project wizard in VS 2017?

I want to create a static library which I want to use in other projects in VS2017 Community but I can't find the right way.
I tried to follow the instructions from here which is for VS2015 but when I want to create a new project I can just provide the name, solution name, location of solution and whether I want to create a directory for the solution or not and with git repository or not.
I remember a project wizard where I could deselect precompiled headers and set the output to a static library.
Did something change or am I missing a component?
Updated answer:
Create new project and under Visual C++ -> Windows Desktop there is a project template called Windows Desktop Wizard which will open the project wizard.
From VS 2017 15.3 Release notes (credits to user VTT from another question)
The Windows Console and Desktop Application templates now create the projects without displaying a wizard. There's a new Windows Desktop Wizard under the same category that displays the same options as before.

Can't create C++ console application in Visual Studio 2013

I downloaded Visual Studio 2013 from official site. But I can't create a new console project, as I've seen in some tutorials. The reason is that there is no console application in templates for C++.
May be there is another way to create a new console application?
That's Visual Studio Express for Windows, which is used for Windows Store and Windows Phone apps.
To do Windows desktop apps you need Visual Studio Express for Windows Desktop.
Or, of course, you can use e.g. the MinGW g++ compiler, and some general IDE such as Code::Blocks or Eclipse. But Microsoft's help system is very useful. And currently g++ only supports the Windows API as it was with Windows XP, no newer stuff.
I found a way to create a Console project no matter what version of VS Express you are using.
Create any type of project (i.e. A basic "class library" project).
Right-click the project in Solution Explorer and click Properties. You'll see a dropdown for "Output type". Select "Console Application".
Create a Main method somewhere as an entry point into the app. Doesn't matter what class you put it in.
class Program
{
static void Main(string[] args)
{
Console.WriteLine("We made a console app");
Console.ReadKey();
}
}
I did this with "Visual Studio 2013 Express for Web", so I'm not absolutely certain what your mileage will be on other flavors.

How to use Qt on another project in Visual Studio once it is already working on one project

I am new to C++ and Qt and I am supporting a project using it. Someone set up my Visual C++ environment with Qt. I wanted to start another test project for me to practice with C++ and Qt. Ive created a new C++ project in Visual Studio, but I have no idea how to add the Qt library to it. There is a Qt menu item at the top of Visual Studio. Anyone know how?
When you select new project in VisualStudio (SHIFT+CTRL+N) you should see Qt4 Projects tab to your left. Select it and then select the type of Qt project you want create. Most likely you would be needing a "QtApplication" or "Qt Console Application" . When you create an application this way, you will have all Qt libraries and includes setup by the Qt-VS Addin automatically
The Qt menu on the top means that you already have a Qt-VisualStudio add-in installed.