I have the VS2017 community and I am lost: the Win32 Console Application is missing.
I don't even have template when I go to New Project and also I cannot create C++ Empty Project in VS2019.
I download almost everything from installer.
How I can solve it?
!
The Win32 templates have been renamed to Windows Desktop.
In VS2017, If you want to create the Win32 Console Application,I suggest you could choose File->New->Project. And then choose Windows Desktop Wizard.As shown below:
If you want to create Win32 Console Application, you could select Console Application(.exe) in Application type. If you want to create the Empty Project, you could check Empty Project
In vs2019, if you want to create a Win32 console application, the steps are similar to in vs2017:
1,From the main menu, choose File > New > Project to open the Create a New Project dialog box.
2,At the top of the dialog, set Language to C++, set Platform to Windows, and set Project type to Desktop.
3,From the filtered list of project types, choose Windows Desktop Wizard
4,Under Application type, select Desktop application (.exe). Under Additional options, select Empty project.
Related
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.
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.
I click on new project. Select win32 console application. Click on ok. New project window disappears. 1 second later it is there again, without a new project.
I'm assuming you're familiar with project creation and have already done it with a different version of VStudio.
Its possible your wizard templates are corrupted. If you are unable to create any other type of project then it most definitely is.
Run the installer again and attempt a repair.
But if you are not familiar with project creation then just follow the wizard and you should have a project being created.
I would like to build an application using C++, but I am facing a problem with the GUI. is there a simple way to make a user interface just by adding and drops buttons and labels like in Java ? Some told me to use QT but I want to use visual studio. Is it possible?
Visual Studio has a Resource Editor, that allows you to drag/drop various controls from the Toolbox panel onto your dialog. You don't really need MFC support for that.
You can use an App Wizard to create new project of a Win32 type, open its .rc file, add new dialog and start experimenting.
Can someone please explain to me a simple way of creating an MSI for an MFC Active X control, which can if possible register the control on the workstation?
Thanks
Windows Installer ( .MSI ) is an SDK. In general the best practice is to use the COM / Registry tables and not go out of process via the SelfReg table or any other technique ( e.g. Regsvr32 ) that calls DllRegisterServer().
However it's impossible to tell you exactly how to do it without some knowledge of which authoring tool(s) you are using to generate your MSI database.
In the solution that contains your ActiveX control project:
Right-click on the Solution, choose Add -> New Project. Choose "Setup Project"
Right-click on the new Setup project, choose Add, then Project Output.
Select Primary Output from your ActiveX control project.
Under your Setup project, right-click on "Primary Output from..." and choose Properties. Set the Register property to vsdrpCOMSelfReg
(Tested with Visual Studio 2010)