www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - widows error

↑ ↓ ← halfblood <halfblood_member pathlink.com> writes:
im very new at this so im not sure what im doing. i wrote a simple hello program
in a text file and then saved it in the dmc bin. then i magically made a .exe
file.... im not even sure how that happened. And now when i click on the exe
file to run there is an error message that says that "the system file is not
sutiable for running ms-dos and microsoft windows applications"

i mean did i write the program wrong?  ... it is:

#include <stdio.h>

int main(void){
printf("hello!!!!");
return 0;
}
Feb 26 2005
→ Jack <Jack_member pathlink.com> writes:
In article <cvqu2m$1fv4$1 digitaldaemon.com>, halfblood says...
im very new at this so im not sure what im doing. i wrote a simple hello program
in a text file and then saved it in the dmc bin. then i magically made a .exe
file.... im not even sure how that happened. And now when i click on the exe
file to run there is an error message that says that "the system file is not
sutiable for running ms-dos and microsoft windows applications"

i mean did i write the program wrong?  ... it is:

#include <stdio.h>

int main(void){
printf("hello!!!!");
return 0;
}

Take a look at here: http://support.microsoft.com/default.aspx?scid=kb;en-us;324767
Feb 27 2005
→ "Walter" <newshound digitalmars.com> writes:
"halfblood" <halfblood_member pathlink.com> wrote in message
news:cvqu2m$1fv4$1 digitaldaemon.com...
 im very new at this so im not sure what im doing. i wrote a simple hello

 in a text file and then saved it in the dmc bin. then i magically made a

 file.... im not even sure how that happened. And now when i click on the

 file to run there is an error message that says that "the system file is

 sutiable for running ms-dos and microsoft windows applications"

 i mean did i write the program wrong?  ... it is:

 #include <stdio.h>

 int main(void){
 printf("hello!!!!");
 return 0;
 }

Add a \n between the ! and the ". Also, compile it with the command: dmc test.c where test.c is the name of the program source file.
Mar 01 2005