Is there a problem with the dbExecuteFile command
This is my loading subroutine (ive tried it with char * and this way it even displays the correct value with dbprint so i am wondering if there is a bug in my code or libs
void loadprogram(char continent[11]) {
dbSetCurrentBitmap(0);
deletebitmaps();
dbExecuteFile("ScudLaunch.exe",continent,"");
exit(EXIT_SUCCESS);
}
this code executes well from a batch file
char continent[11];
if (2!=__argc)
{
strcpy(continent,"Australia");
}else
{
//!strcmp returns true if the strings are equal
//if (!strcmp(__argv[1],"Asia")||!strcmp(__argv[1],"Europe")||!strcmp(__argv[1],"Africa")||!strcmp(__argv[1],"NthAmerica")||!strcmp(__argv[1],"SthAmerica")||!strcmp(__argv[1],"SthPole"))
if (strcmp(__argv[1],"Asia")==0||strcmp(__argv[1],"Europe")==0||strcmp(__argv[1],"Africa")==0||strcmp(__argv[1],"NthAmerica")==0||strcmp(__argv[1],"SthAmerica")==0||strcmp(__argv[1],"SthPole")==0)
{
strcpy(continent,__argv[1]);
}else{
strcpy(continent,"Australia");
}
}
I hope this was allright to post this here it seemed relevent to as it may be a bug
fubar