Appel d'un executable par un autre executable

bonneti Messages postés 1 Date d'inscription lundi 8 novembre 2004 Statut Membre Dernière intervention 9 novembre 2004 - 9 nov. 2004 à 11:54
magic_Nono Messages postés 1878 Date d'inscription jeudi 16 octobre 2003 Statut Membre Dernière intervention 16 mars 2011 - 9 nov. 2004 à 19:06
salut tout le monde,

g un éxécutable qui fait du traitement d'images et j'aimerais en cliquant sur un bouton pouvoir appeler un autre éxécutable qui me tracerai un graphique.

Si vous connaissez une méthode pour réaliser ceci ainsi que pour passer un tableau d'un éxé à l'autre je suis très fortement intéresser.

Merci.

2 réponses

cs_LordBob Messages postés 2865 Date d'inscription samedi 2 novembre 2002 Statut Membre Dernière intervention 11 mai 2009 9
9 nov. 2004 à 12:57
ShellExecute() pour lancer l'exe...
pour le tableau, passer les valeurs en parametre à l'exe...
Bob...

"La chance accorde ses faveur aux esprits avertis..."
0
magic_Nono Messages postés 1878 Date d'inscription jeudi 16 octobre 2003 Statut Membre Dernière intervention 16 mars 2011
9 nov. 2004 à 19:06
ShellExecute ou winexec

et pour la valeur de retour utiliser une fonction comme celle ci extraite de ma lib BVisuel

void BVisuel::afficheErreurShellExecute(const unsigned int retour_ShellExecute)
{
/// ------------------------------------------------------------------------------------------------------------
/// ---------------- BVisuel::afficheErreurShellExecute(const unsigned int retour_ShellExecute) ----------------
/// ------------------------------------------------------------------------------------------------------------
/// ----- Objectif : Visual - trt des erreurs possibles a l'execution d'un prg avec ShellExecute
/// ----- Auteur(s) : Bruno CELLE 17/08/04
/// ----- PreCond : /
/// ----- PostCond : /
/// ----- Etat : 1 (-1<0<1<2)
/// ------------------------------------------------------------------------------------------------------------
/// ----- const unsigned int retour_ShellExecute : cf.nom
/// ------------------------------------------------------------------------------------------------------------
/// ----- Var : classes externes dont on appelle des méthodes (1) : BVisuel
/// ----- Var Muettes (cf.partie préc) (1) : retour_ShellExecute
/// ----- Var In (1) : retour_ShellExecute
/// ----- Var In Globales Constantes (7) : SE_ERR_ACCESSDENIED ,SE_ERR_ASSOCINCOMPLETE ,SE_ERR_FNF ,SE_ERR_NOASSOC ,SE_ERR_OOM ,SE_ERR_PNF ,SE_ERR_SHARE
switch(retour_ShellExecute)
{
case 0:
BVisuel::alerte("The system is out of memory or resources.");
break;

case SE_ERR_FNF:
BVisuel::alerte("The specified file was not found.");
break;
case SE_ERR_NOASSOC:
BVisuel::alerte("There is no application associated with the given file name extension.");
break;
case SE_ERR_OOM:
BVisuel::alerte("There was not enough memory to complete the operation.");
break;
case SE_ERR_PNF:
BVisuel::alerte("The specified path was not found.");
break;
case SE_ERR_SHARE:
BVisuel::alerte("A sharing violation occurred.");
break;
case SE_ERR_ASSOCINCOMPLETE:
BVisuel::alerte("The file name association is incomplete or invalid.");
break;
case SE_ERR_ACCESSDENIED:
BVisuel::alerte("The operating system denied access to the specified file.");
break;
//rq : je suppose que default est OK
}
}

Magic Nono: l'informagicien! 8-)
0
Rejoignez-nous