I have written the simple Hello World Application on windows xp file Name "hello.c" as:
#include<stdio.h>
int main(){
printf("Hello World\n");
return 0;
}
compiled with the following command:
gcc hello.c
Now on another Machine with Windows Vista Installed the DosBox Application and tried to run a.exe compiled by gcc
The application doesn't run and provided the following message:
This Program cannot be run in DOS mode.
But when I double clicked on a.exe file in windows explorer it runs and said:
Hello World
Why this message is coming.....