program cannot be run in DOS mode ?

Windows specific forum
mhgschmidt
New User
New User
Posts: 9
Joined: Sun Jan 18, 2004 3:19 pm
Location: Germany

program cannot be run in DOS mode ?

Post by mhgschmidt »

Hi all,

i've written and compiled a console app.
It's running on my machines - no prob.
But when i try to start it on my friends system i get:

"program cannot be run in DOS mode"

I'm using intel based win machines. He's got an AMD system.
Maybe it's not compiled correctly for AMD ?

My compiler runs with the defaults. Do i have to tell the compiler to generate a binary that will run on AMD & Intel ? Or is it a 32/64 bit problem ?

Any ideas anyone ?
Michael H.G. Schmidt
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: program cannot be run in DOS mode ?

Post by PB »

Console <> DOS.

Sounds like he is trying to run it from DOS, rather than from within Windows.
This is not what a console program does. To run from DOS, he needs an app
that creates true DOS executables, which PureBasic does not.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Do you actually mean real MS-DOS? :shock:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It sounds to me like the file is corrupted. Did you transfer it via FTP without using binary transfer mode?
mhgschmidt
New User
New User
Posts: 9
Joined: Sun Jan 18, 2004 3:19 pm
Location: Germany

Post by mhgschmidt »

Trond wrote:It sounds to me like the file is corrupted. Did you transfer it via FTP without using binary transfer mode?

:oops: today i checked the ftp server. The binary was 1 byte smaller than on my local disc but i tried with the version on the server. I think there was a problem with putting it there with my ftp client but i didn't notice.

Thanks for the help. :-)
Michael H.G. Schmidt
Post Reply