Running a program in Visual Studio 2019 opens Visual Studios 2019

I’m working on the triplex game and every time I try to compile and run the game it opens my code in Visual Studio 2017 instead of running the game. It compiles alright but then opens VS 17. I’m using Power shell so I need to use .\TripleX.cpp

Thanks for the help!

Because that’s what you’re telling it to do. You’re saying to launch triplex.cpp in the default application.

You want the .exe not the .cpp

To clarify that a bit.

The, .cpp is your source code file. Its a text file basically.

The .exe is the executable and the thing you use to run an application.

./ is used with terminal or command line and is one way that basically starts/opens the following file. With cpp it apparently opens Visual Studio.

And that’s how you learn so from now on you will always know what an exe is for :slight_smile:

Of course, you can always dig deeper later and learn much more about exe’s too.

That makes sense. Thanks for the clarification!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.