-4

I wanted to covert a .cpp file to a .exe file and make it able to run on another computer, I managed to find the .exe file using build solution but when I type in it, it just disappears. (I'm using Visual studio 2022)

Convert .cpp to a .exe file and run it on other computers.

Barmar
  • 741,623
  • 53
  • 500
  • 612
kienhyy
  • 1
  • 1
  • That's what a compiler does, it compiles a source file and produces an object or executable file. – Barmar Aug 12 '23 at 05:07
  • looks like a bad joke from someone with 739k rep. – folibis Aug 12 '23 at 05:12
  • If you are using Visual Studio, your first step is to *read the documentation*. The introduction will run through a basic approach of how to create a project, add a source file (.cpp) to the project, and build an executable. Once you have built the executable, copy it to other computers (assuming they are running a compatible version of windows), and run it from those other computers. To state the obvious, you need to obtain appropriate access (e.g. an account set up by administrator of that machine) on the other computer. – Peter Aug 12 '23 at 05:13

0 Answers0