I have a project in c++ with a sime gui (form)
I remember that the application file (file that runs the project) should be in the "Debug" directory of the project, but I don't find it. How can I create this file ?
Thanks
Hit the "Build / Build Solution" menu command?
Related
I have migrated from Visual Studio 2008 to VS 2017.
I am getting this error when I try to run project with the green play button:
Obviously I have to select a valid startup item, but there are two pieces of information I need to do that:
what are typical valid startup items that I can try to select?
How do I select them?
I am a long time developer, but I am new to visual studio so please give me instructions based on terminology I can see on the screen.
It might be the case that you have opened your project using
File->Open->Folder
Use the right method to open your project using
File->Open->Project/Solution
or
File->Open->Website
File > New > Project From existing code. Select type of project > Next. Enter project name > Finish.
I went to File > Open > project/Solution and found the ".sln" file. I clicked on it and then pressed open and it worked for me. Just spent ages trying to figure this out!
Regards,
Open Visual Studio ------------------
Click File
Click Open
Open as Web Sites
Another method
Click File
Click Open
Open as Project
I found this question after I did File → Open → Folder as well. However in my case it's not a website, all I have is a source file. I don't want to create a full solution.
Now that Visual Studio supports CMake (to some degree), easiest is to add a simple CMakeLists.txt file, like this:
project (theproject)
add_executable (thetarget source.cpp)
As soon as the folder contains this file, Set as Startup Item turns up as a menu item in the Solution Explorer!
The only solution is that or this error:
please select a valid startup file is that repair your visual studio
double click on visual studio installer and then click on the More then repair your visual studio
Recently I updated my Visual Studio 2017.
Since then, I can't create windows console application project.
[File] - [New] - [Project]
and I selected [Installed] - [visual C++] - [windows console application program]
When I clicked OK, application setting wizard didn't appear.
above wizard didn't appear. Instead Visual Studio automatically created precompiled header project.
What's wrong?
According to Visual Studio 2017 release notes:
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 resolved my issue.
Go to file -> new project -> visual c++ -> windows desktop -> windows desktop wizard
There's a new Windows Desktop Wizard under the same category that displays the same options as before
Be sure you selected ... Wizard by creating project. There you can select "Console Application" type , DLL... in drop down menu. If you have selected "Windows Console Application" for instance there is no wizard any more, it creates full project. You can set/change that under:
Configuration Properties → C++ → Precompiled Headers
if you need to have an empty console application project, try empty project.
[Installed] - [visual C++] - [Empty Project].
Then add new .cpp file to the Source Files folder in solution explorer.
[right click on Source Files] - [Add New Item] - [C++ File (.cpp)].
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 downloaded the source code from here to learn cuda but its not opening correctly, it showing me this window.
Edit: There is no such path in my computer (C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\cuda.targets)
Right-click each project and click Reload Project.
I'm trying to run Qwt examples using VS2010. I've installed the Qt plugin for Visual Studio. I then open the .pro file of Qwt and the build succeeds. But I have no clue what to do next. Whenever I click run, it gives me a dialog which says
unable to start programe E:\qwt-6.0.1\src..\lib\qwtd.dll
Does anyone have an idea what might cause this?
I just managed to get the examples compiled using the command line tools. Key steps included:
Add the bin dir of qt and the lib dirs of qt and qwt to the path
Dont forget to run vcvars32.bat from Visual Studios bin directory
VC\bin should be in the path too
then follow the INSTALL instructions from qwt
After this I had a set of running examples in examples/bin of qwt. It's also easy to open one of them in Developer Studio with the "Open Qt Project File" option in the Qt Menu.
From the information you're giving us, it seems you have the project generating your DLL set at the StartUp project. So whenever you click on run/debug, it will try to run the output of that project, in this case a DLL. Of course this won't work.
If there is a project for the example you want to run, right click on that project within the Solution Explorer and select "Set as StartUp Project". Now when you click on run/debug, it will run the output (the executable) of the project you selected.