cs_papi2
Messages postés44Date d'inscriptionvendredi 22 avril 2005StatutMembreDernière intervention 6 mars 2009
-
13 déc. 2006 à 11:59
cs_papi2
Messages postés44Date d'inscriptionvendredi 22 avril 2005StatutMembreDernière intervention 6 mars 2009
-
13 déc. 2006 à 21:58
Bonjour,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /??>
Si je mets :
if (system("Start MAX.exe") == false)
Là il me renvoie les bons MessageBox()
if (ShellExecute(NULL, "open", “MAX.exe”, 0, 0, SW_SHOWNORMAL) == false)
Ici il ouvre s’il trouve. Mais qu’il ouvre ou pas l' exe
, il me renvoie toujours le même MessageBox()
, à savoir : MessageBox(0, « raté », « TROUVE PAS », 0) ;
{
MessageBox(0, "Ouvert", "TROUVE", 0);
}
else
{
MessageBox(0, "raté", "TROUVE PAS", 0);
}
J’utilise DEV-C++
Pourriez-vous m’aider à comprendre pourquoi ça marche avec Start et pas avec ShellExecute ?
Merci
A voir également:
Error: iso c++ forbids comparison between pointer and integer