ShellExecute error handling
Hi, here there is the description:
http://msdn.microsoft.com/library/de...ellexecute.asp
and in particular:
Code:
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise.
but..
Code:
int Popup (void){
char popupPath[] = "C:\\.....\test.exe";
if(32 > (ShellExecute(NULL, "open",
popupPath,
NULL, NULL, SW_SHOWNORMAL))) {
printf("Error...\n");
} else printf("Ok..\n");
return 0;
}
274 [Warning] comparison between pointer and integer.
It looks like devcpp thinks that shellexecute will return a string (one of those written in the documentation maybe) instead an integer from 0 to 32.
Any hints? thanx!