Page 1 of 1

program cannot be run in DOS mode ?

Posted: Sat Oct 20, 2007 4:42 pm
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 ?

Re: program cannot be run in DOS mode ?

Posted: Sat Oct 20, 2007 4:50 pm
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.

Posted: Sat Oct 20, 2007 4:51 pm
by Fluid Byte
Do you actually mean real MS-DOS? :shock:

Posted: Sat Oct 20, 2007 6:37 pm
by Trond
It sounds to me like the file is corrupted. Did you transfer it via FTP without using binary transfer mode?

Posted: Mon Oct 22, 2007 4:42 pm
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. :-)