简体   繁体   English

如何正确打开 Visual Studio 项目?

[英]How to properly open a Visual Studio project?

I have a problem that will be very simple to solve but I don't know how to do it.我有一个很容易解决的问题,但我不知道该怎么做。

Scenario: I want to run an emulator coded in C++ by a YT (javidx9) in Visual Studio.场景:我想在 Visual Studio 中运行一个由 YT (javidx9) 用 C++ 编码的模拟器。 The project is here: https://github.com/OneLoneCoder/olcNES and the folder is "Part#2 - CPU"项目在这里: https : //github.com/OneLoneCoder/olcNES文件夹是“Part#2 - CPU”

Problem: I never use Visual Studio, so its something new for me, and my problem is that I don't know how to run the project (emulator).问题:我从不使用 Visual Studio,所以它对我来说是新东西,我的问题是我不知道如何运行项目(模拟器)。 And I can't find any post or article on the internet about my problem.而且我在互联网上找不到任何关于我的问题的帖子或文章。 (I tried to create an empty project in VS and then copy the emulator files to the folder of my empty project and then run it, but it sent me an error that the files were not found (and its because that isn't the correct way to run the program and I don't know how to do it)). (我尝试在 VS 中创建一个空项目,然后将模拟器文件复制到我的空项目的文件夹中,然后运行它,但它向我发送了一个错误,指出找不到文件(这是因为那不是正确的)运行程序的方式,我不知道该怎么做))。

My request: I would be very grateful if someone could explain to me how to open and run this project (the emulator) correctly in Visual Studio.我的要求:如果有人能向我解释如何在 Visual Studio 中正确打开和运行这个项目(模拟器),我将不胜感激。

Thanks!!!谢谢!!!

Your project does not have.你的项目没有。 sln file. .sln 文件。 You need to create new project in visual studio.您需要在 Visual Studio 中创建新项目。 Last file has main function as below.最后一个文件的主要功能如下。 You need to run this main file(olcNes_Video1_6502.cpp) You may need to check path of headers included from other projects.您需要运行这个主文件(olcNes_Video1_6502.cpp) 您可能需要检查其他项目中包含的头文件的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM