How to i open this applications is visual studio so i can run the code? - c++

I have this application code on the following remote server
https://svn.reactos.org/reactos/trunk/reactos/base/applications/rapps_new/
I have tried making a windows application in visual studio and adding the files to it, but it doesn't compile.
Whats the correct way to run the code?

You need to use CMake to generate a Visual Studio solution for the project. Then you will be able to import your solution into Visual Studio and build it.

Related

Working with Visual Studio C++ project in Visual Studio Code

I have a C++ project in Visual Studio and I much prefer Visual Studio Code for editing source files.
Is there a way to work with Visual Studio C++ projects in Visual Studio Code? Like getting include paths from ".sln" file or maybe even running MSBuild.
Open Developer Command Prompt/PowerShell for VS 2019. This will set necessary environment variables such as include paths.
Navigate to the directory of your project.
Type code . to start VS Code in your current directory.
Now, you will be able to use commands like cl, msbuild etc in the integrated terminal.
Happy coding.

Exe file from a console project in Visual Studio?

I want to execute a C++ program in a second machine without any IDE.
I tried to launch the .exe file which is located in the debug folder of the project and to generate a .exe file following this guide.
Both .exe gave me the same errors (launched manually and from a prompt):
The program can’t start because
- VCRUNTIME140D.dll
- MSVCP140D.dll
- VCRUNTIME140_1D.dll
- ucrtbased.dll
is missing from your computer. [...]
So i try to uninstall and reinstall Microsoft Visual C++ Redistributable per Visual Studio 2015, 2017 e 2019 from there, but still the same errors.
What am I missing? How can I run it without install the whole Visual Studio IDE? Thanks for your time.
You need to compile your program to a Release exe file. Compiling your program using Debug will never work on any device unless it has Visual Studio installed on it.
Why this happens?
If you select debugging, before the program runs it loads some DLL files for debugging in visual studio. Now, on other machines visual studio may not be installed, so it couldn't find the DLL files so it will just not start. But Release, it is like its name, when you want to send your program to a friend or use it on another computer or share it on the internet, use Release. But if you are testing bugs and still working on the program, use Debug.

TightVNC on VS2015 compile from source code

I am trying to compile the TightVNC from the source code.
Here is my system details:
Windows 10
SDK 8.1
When i build the project it throw error about the folder or file not found. I try to install and include the files but it won't worked.
sidenote: I am not a C++ developer, i have to compile it from source code.
Thanks in advance.
The error
RC1015 can't open include file afxres.h
seems to generate from project because it requires the header file from MFC. As far as I understand, visual studio 2015 default setup does not install Visual C++ MFC package. Therefore you need to modify the Visual Studio 2015 setup and add the MFC.
Please close VS2015 and Go To
Control Panel->Programs and Features->
Microsoft Visual Studio <Professional/Enterprise>->
Change->Modify->Add Microsoft Foundation Classes
Then re-open visual studio 2015 and re-build the solution.

Open a vdproj file with VS Community 2017?

I retrieved a C++ VS project from 2011 and it has a Install-win32.vdproj I guess it has to be the file I need to open in order to build the project.
Unfortunately Visual Studio 2017 seems not to recognize this kind of file. Is there any ways to interpret it or convert it?
For VS2017, use the Microsoft Visual Studio Installer Projects. Download link is below. Be sure to close Visual Studio before running the installer:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2017InstallerProjects

How to compile source C++ code that doesn't have a project file?

I have just started learning more about C/C++ and I am using Visual Studio 2013 to manage the code.
A project I am working on to use the Tobii EyeX eye gaze system requires me to be able to tweak this code slightly, however I do not understand how I can compile this code to an exe file without a Microsoft Visual Studio project file. This is that code:
https://github.com/MastaLomaster/bkb
In the source folder you see all the project's files but not an actual project file. How would I go about compiling this code? Where do I start? I can not seem to be able to load this is Visual Studio at all - the programmer of the code says (at the bottom of the Github page):
Compiling the source codes As for now, you have to use Microsoft
Visual Studio 2012 (latest update preferred)...
Either create a makefile(if no makefile is exist) for visual studio using nmake or you can use the suggestion provided in this link.
Additionally you can create a project by adding these codes as source. follow this link.