thmatew
Messages postés68Date d'inscriptionjeudi 16 juin 2005StatutMembreDernière intervention19 janvier 2010
-
4 mai 2006 à 16:09
thmatew
Messages postés68Date d'inscriptionjeudi 16 juin 2005StatutMembreDernière intervention19 janvier 2010
-
5 mai 2006 à 11:29
Salut a tous,
j'ai un gros probleme avec cette fameuse fonction createprocess:
voici mon appel de la fonction:
CreateProcess(
""C:\\wany\\maeva2004\\Tools\\Mitsubishi M16 Flasher\\Flasher.exe" ",
""C:\\wany\\maeva2004\\Examples\\PekeeV1-microcontroler\\AvoidObstacle&OPPDialog\\build-native\\AvoidObstacle.mot"",
NULL,
NULL,
TRUE,
CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_CONSOLE NORMAL_PRIORITY_CLASS,
NULL,
"c:\\tmp\",
NULL,
&pi
);
les variables sont bien declarées mais ceci me fait planter mon programme, il refuse d'ouvrir mon Flasher.exe.
Pouvez-vous m'aider SVP???
thmatew
Messages postés68Date d'inscriptionjeudi 16 juin 2005StatutMembreDernière intervention19 janvier 2010 5 mai 2006 à 10:13
en essayant avec un programme windows, voici ce ki se passe:
CODE:
void main ()
{
PROCESS_INFORMATION info;
CreateProcess(
NULL,
// pointer to name of executable module
"c:\\windows\\explorer.exe", // pointer to command line string
NULL, // process security attributes
NULL, // thread security attributes
TRUE, // handle inheritance flag
0, // creation flags
NULL, // pointer to new environment block
NULL, // pointer to current directory name
NULL, // pointer to STARTUPINFO
&info // pointer to PROCESS_INFORMATION
);