agdhruv
agdhruv

Reputation: 640

How to run .exe files output by Turbo C++?

I wrote a program in Turbo C++, and compiled it there. Everything was successful, and the program ran as expected. Now, I want to run the program as an exe file. I found the exe file in a separate folder named 'Source'. But whenever I try to run it, I get the error :

"This app can't run on your PC. To find a version for your PC, check with the software publisher."

None of the exe files in that folder are working, although all the other softwares (like Photoshop) are opening fine.
Could someone help me please?

Upvotes: 3

Views: 5067

Answers (2)

Kumar Gaurav
Kumar Gaurav

Reputation: 1

write system("PAUSE"); before return 0;

Upvotes: 0

Mykola
Mykola

Reputation: 3363

The OS on your PC probably is 64 bit. So the older 16 bit application would not run on it. I suggest you to use some virtual machine with installed OS DOS (or free DOSBOX for example), or try to compile your program on more modern compiler.

Upvotes: 7

Related Questions