Process.Start d'un exe x86 depuis application x64
Bonjour,
J'ai une application 64 bits (TargetPlatform=x64) qui doit exécuter un exe externe durant son fonctionnement. Cet exe est compilé en 32 bits (x86). Voici la manière dont j'exécute cet exe :
Code:
1 2 3 4 5 6 7 8
| //Préparation du process
l_process.StartInfo.FileName = _sFullFilePath;
l_process.StartInfo.Verb = "Open";
l_process.StartInfo.CreateNoWindow = true;
l_process.StartInfo.Arguments = l_sParams;
//Démarrage du process
l_process.Start(); |
L'erreur suivante apparaît :
Citation:
The specified executable is not valid for this OS platform
Est-il possible de spécifier la plateforme du processus externe ? Comment faire dans mon cas ? Ca m'embête de passer tout mon application en 32 bits pour ce processus externe.
Merci d'avance de votre aide !