|
|
|
|
Bonjour,
Je voudrai pouvoir exécuter des programme depui mon programme.
J'y arrive avec system(); mais c'est nul, sa l'ouvre a partir du dos. J'ai essailler :
ShellExecute(0, 0, "notepad.exe", 0, 0, SW_SHOW);
ShellExecute(GetDesktopWindow(), "open", "c:\Windows\notepad.exe", NULL, NULL, SW_SHOWNORMAL);
WinExec("notepad.exe",SW_SHOW);
Process.Start("notepad")
rien ne marche...
Erreur a la compilation, pk ?
Configuration: Windows Vista Firefox 3.0.4
Nan je l'avais pas fait :).
#include <iostream>
#include <shellapi.h>
using namespace std;
int main()
{
ShellExecute(0, 0, "notepad.exe", 0, 0, SW_SHOW);
return 0;
}
Dans Code::Blocks sa m'ouvre shellapi.h et sa me dit qu'il y a une erreur ligne 142 : typedef WORD FILEOP_FLAGS; |