Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
Hi
i made a program by C++ turbo and now i wanna use .exe file , so when i run it i face with an error that it's a 32 bit program and you can not open it in 64 bit operation!
so i wanna know how can i make a 64 bit program by c++ turbo ??? where is the setting?
(My c++ turbo is a 64 bit one and my operating system is 64 bit too)!

Thank you

:Doostl
Posted
Updated 5-Jan-23 4:25am
Comments
i.fakhari 2-Jan-14 13:51pm    
i searched and read that there is no way to run the .exe file directly in a 64 bit operating sys!!!
i wanna know that anyone know any way to do it??!?
PIEBALDconsult 2-Jan-14 22:04pm    
Are you really using Turbo C++ ? Not a more recent Borland product?

I just used the Borland C/C++ 5.5 "Free Command Line Tools" to compile a simple console app on Win7 32-bit and ran it on Win7 64-bit with no trouble.

"Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland"

Bull. 64-bit Windows has no problem running 32-bit apps. I have no idea what you're reading, but it's wrong. Turbo C++ 16-bit on the other hand will not run on any version of 64-bit Windows, nor will any of the code it compiles to 16-bit executables.

Turbo C++ has long since been a dead product. There was never an official release that could compile to 64-bit code.

Just to be clear, Turbo C++ never compiled to 64-bit code. It was 32-bit only and below. The INSTALLER and the ENVIRONMENT for Turbo C++ now works on 64-bit windows. It does NOT compile code to 64-bit exectuables.
 
Share this answer
 
v2
Comments
i.fakhari 2-Jan-14 14:18pm    
I guessed :[
Thank you
Dave Kreskowiak 2-Jan-14 14:21pm    
If you're using an offical Borland build of Turbo C++, it compiles down to 16-bit code, which will not run on any 64-bit version of Windows. You'd need a DOS emulator, like DOSBOX, to get the resulting program to work.
Sergey Alexandrovich Kryukov 2-Jan-14 14:48pm    
Of course, but see also my comment to Solution 1. (Voted 5.)
—SA
As far as I know you cannot run a Turbo C++ created executable on a 64 bit Windows (I don't know if a 'compatybility mode' would do the trick). I would suggest you to use a more modern compiler (there are many available for free) or run your executable inside a tool like DosBox[^].
 
Share this answer
 
v2
Comments
i.fakhari 2-Jan-14 14:13pm    
thank you 4 help !
it's my university project ! i hate use these old compilers too!!!
Dave Kreskowiak 2-Jan-14 14:19pm    
If that's what they're forcing you to use, find a new university! They're forcing you to use using stuff that has been dead for over 7 years now.
Sergey Alexandrovich Kryukov 2-Jan-14 14:47pm    
Good point. However, this compiler wasn't really bad. Sometimes, people need to learn old technology, to learn some basics of programming. But of course, the school should provide the software, including the platform (what could be a target platform for applications created with Turbo C++? :-) and require only what it does. I doubt that this is the case, unless they really want to teach real mode on low level and use embedded assembly a lot. Otherwise, any other non-nonsense C++ compiler would work just as well, including the most modern one.
—SA
Dave Kreskowiak 2-Jan-14 15:11pm    
True, but somehow, I don't think they're going over real mode or assembly. I have no evidence to such, just a feeling based on the pile of misinformation is the question he asked.
Sergey Alexandrovich Kryukov 2-Jan-14 15:18pm    
As I say, I also doubt that, and I have the same feeling...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900