I was new to Visual Studio and I want it to debug some of my c++ files.
The VS 2010 Ultimate was already installed in my lab system.
Now to debug after referring to internet and also here I came to know that we need to start a new project as below
File -> New -> Project -> Visual C# -> Win32 -> Win32 Console application
But in my VS there was no Win32 under Visual C# but there was Windows in which there was Console application, which I selected.
Then we need to add the C++ files under the source files directory. But I didn't find any such directory in this console application.
Is there any problem with installation or configuration.
Can anyone please help me.
the correct path to start a win32 C++ console project is
File -> New -> Project -> Visual C++ -> Win32 -> Win32 Console application
and if you don ´t find path it mean that you.have a custom setup.
find your setup DVD and/or use Add and Remove program to " modify " the setup. When installation program ask for the component you need check the C++ box. finish the setup and and after you will have a specific section for c++ project ....
Related
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 :)
I am on Visual Studio Community 2017 v. 15.3.1 and I can't seem to find Win32 console application or Win32 project. Still have empty c++ project template and Windows Console Application template.
On the start page, I still have win 32 console project available, but if I click it, I get a prompt about removing it from the list
EDIT: I have currently installed following Workloads:
Universal Windows Platform
Net desktop development
Desktop development with C++
Game Development with C++
Visual Studio extensions development
I've done no changes to workload configuration, save from adding a few extra components.
I've been fiddling with installer for a while but can't figure out which package I need for this. Any suggestions?
The new updated changed some things. Go to file -> new project -> visual c++ -> windows desktop -> windows desktop wizard -> select whatever you want
If you haven't installed C++ at all (doesn't come by default as mentioned above) look here
This seems to work. Credit all goes to the original website! :)
(https://developercommunity.visualstudio.com/content/problem/93159/cant-find-win32-console-application-for-new-projec.html )
If you are using Visual Studio 2017, and can't find "win32 console project" after File ->> New ->> Project:
(https://imgur.com/a/3mmgyP3 : VS 2017 "New Project" without "win32 console project" )
Go to File ->> New ->> Project ->> Windows Desktop Wizard ->> select "Empty Project"
VISUAL STUDIO 2015
(https://imgur.com/a/9H7sHfV : File ->> New ->> Project ->> "Win32 Console Application")
VISUAL STUDIO 2017
(https://imgur.com/a/5Qqzf1L : File ->> New ->> Project ->> "Windows Desktop Wizard")
With the hope of getting trained for C++ as a zero newbie, I was following directives to create a C++ dev environment on a PC equipped with Windows 10 and Visual Studio 2015 Community Edition.
I create a new C++ project on VS 2015 CE
When I right-click project properties, I cannot locate C/C++ > Preprocessor - it's just not there as can be seen from the screenshot.
So trying to figure out how on Earth I can add some custom preprocessor definitions here. :-(
Add at least one .cpp or .c file to your project (or, more generally, an item with ItemType "C/C++ Compiler").
A desired entry will appear in Project Property Pages (exactly where you expect it to be):
Configuration properties -> C/C++
There will be subentry "Preprocessor".
Alternatively, you may create a project of type
Visual C++ -> Win32 -> Win32 Console Application (or, more general, Win32 Project)
This type of projects already contains C++ files with some simple code.
I am new to C# and I am in my first Hello World program... it runs fine in VS2015 Community Edition (Win 7). Now, I want to generate an .exe file for my project, but when I click Build be it in Release or in Debug I get the message Build Succeeded but I cannot find the .exe file for my project. I am searching in the same directory where my project resides: I can see the "source" subdirectory and the "artifacts" subdirectory; but cannot see an "release" or nor an "debug" or nor an "bin" subdirectories.
Thank you!
Not sure if you are trying to setup a Console Application under the File -> New Project -> Visual C# -> Web Template -> Console (Package). If you are, you need to use the Visual C# -> Windows -> Console Application.
That will create an .exe file for you.
I am getting started in C++. How can I setup Visual Studio 2008 to create native (not managed) code?
Choose a Win32 Project.
If you're just getting started you probably want a Win32 Console Application, and not a Win32 App. File -> New -> Project -> Visual C++ -> Win32 -> Win32 Console Application
When you create the project itself you'll probably want to click Next before you click Finish, and select Empty Project so that VS won't add a bunch of junk to your project for you.
File -> New -> project (maybe go to other lang if you see c#) -> visuall c++ -> win32
You can choose other types there it still be native.
(like mfc, but I doubt if you really need something other then the basic win32)
In the new projects dialog, choose any project type under the Visual C++ group. You'll need Visual Studio Pro, or Visual Studio Express for C++.