Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Problème avec CreateProcess (VB6) et Windows XP

16 réponses
Avatar
Hafe
J'ai un programme VB6 qui date de Windows NT puis Windows 2000.

Dans ce programme, pour appeler un exe externe et attendre la fin de son
exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec (code
trouvé sur le site de Microsoft) : l'appel se fait correctement sous Windows
Nt et Windows 2000 (Pro et Server).

Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout ! J'ai
bien trouvé un article sur le support Microsoft mais qui concerne uniquement
Windows 2003.

Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas trop
satisfaisantes.
Merci d'avance.

10 réponses

1 2
Avatar
X
Bonjour,

Pour appeler seulement, ça devrait suffire:

Shell "explorer.exe http://www.ifrance.com/Irolog";

Pour ouvrir et fermer, mais ce n'est pas en VB:

Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long _
) As Long
'
Private Declare Function TerminateProcess Lib "kernel32" ( _
ByVal hProcess As Long, _
ByVal uExitCode As Long _
) As Long
Private Declare Function CloseHandle Lib "kernel32" ( _
ByVal hObject As Long) As Long
'
Private Const PROCESS_TERMINATE = &H1
Dim NumProcess As Long
Dim RC As Long
Dim hProcess As Long
'
Sub ouvrir()
NumProcess = Shell(Nom_fic, 1)
End sub
Sub fermer()
hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
RC = TerminateProcess(hProcess, 0&)
RC = CloseHandle(hProcess)
End Sub


Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler l'exe 2
par Shelle, ensuite l'exe 2 fait son travail, le balance dans un fichier et
se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
Enfin, pour les cas généraux...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
"Hafe" a écrit dans le message de news:

J'ai un programme VB6 qui date de Windows NT puis Windows 2000.

Dans ce programme, pour appeler un exe externe et attendre la fin de son
exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec
(code
trouvé sur le site de Microsoft) : l'appel se fait correctement sous
Windows
Nt et Windows 2000 (Pro et Server).

Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout ! J'ai
bien trouvé un article sur le support Microsoft mais qui concerne
uniquement
Windows 2003.

Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas trop
satisfaisantes.
Merci d'avance.





Avatar
Guy DETIENNE
Si ce n'est pas du VB ce que tu as proposé, qu'est-ce alors ?

Utiliser des API's ne signifie pas ne pas utiliser VB.
Disons plutôt que tu utilises des librairies de fonctions externes, ici,
écrites en C, paliant ainsi les faiblesses de VB...

Guy


"X" a écrit dans le message de news:

Bonjour,

Pour appeler seulement, ça devrait suffire:

Shell "explorer.exe http://www.ifrance.com/Irolog";

Pour ouvrir et fermer, mais ce n'est pas en VB:

Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long _
) As Long
'
Private Declare Function TerminateProcess Lib "kernel32" ( _
ByVal hProcess As Long, _
ByVal uExitCode As Long _
) As Long
Private Declare Function CloseHandle Lib "kernel32" ( _
ByVal hObject As Long) As Long
'
Private Const PROCESS_TERMINATE = &H1
Dim NumProcess As Long
Dim RC As Long
Dim hProcess As Long
'
Sub ouvrir()
NumProcess = Shell(Nom_fic, 1)
End sub
Sub fermer()
hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
RC = TerminateProcess(hProcess, 0&)
RC = CloseHandle(hProcess)
End Sub


Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler l'exe 2
par Shelle, ensuite l'exe 2 fait son travail, le balance dans un fichier
et se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
Enfin, pour les cas généraux...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
"Hafe" a écrit dans le message de news:

J'ai un programme VB6 qui date de Windows NT puis Windows 2000.

Dans ce programme, pour appeler un exe externe et attendre la fin de son
exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec
(code
trouvé sur le site de Microsoft) : l'appel se fait correctement sous
Windows
Nt et Windows 2000 (Pro et Server).

Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout !
J'ai
bien trouvé un article sur le support Microsoft mais qui concerne
uniquement
Windows 2003.

Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas trop
satisfaisantes.
Merci d'avance.









Avatar
La fonction Shell ne permet pas d'attendre la fin de l'exécution du
programme, c'est pour cela qu'il utilise la fonction CreateProcess()



"X" a écrit dans le message de
news:
Bonjour,

Pour appeler seulement, ça devrait suffire:

Shell "explorer.exe http://www.ifrance.com/Irolog";

Pour ouvrir et fermer, mais ce n'est pas en VB:

Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long _
) As Long
'
Private Declare Function TerminateProcess Lib "kernel32" ( _
ByVal hProcess As Long, _
ByVal uExitCode As Long _
) As Long
Private Declare Function CloseHandle Lib "kernel32" ( _
ByVal hObject As Long) As Long
'
Private Const PROCESS_TERMINATE = &H1
Dim NumProcess As Long
Dim RC As Long
Dim hProcess As Long
'
Sub ouvrir()
NumProcess = Shell(Nom_fic, 1)
End sub
Sub fermer()
hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
RC = TerminateProcess(hProcess, 0&)
RC = CloseHandle(hProcess)
End Sub


Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler l'exe 2
par Shelle, ensuite l'exe 2 fait son travail, le balance dans un fichier


et
se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
Enfin, pour les cas généraux...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
"Hafe" a écrit dans le message de news:

> J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>
> Dans ce programme, pour appeler un exe externe et attendre la fin de son
> exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec
> (code
> trouvé sur le site de Microsoft) : l'appel se fait correctement sous
> Windows
> Nt et Windows 2000 (Pro et Server).
>
> Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout !


J'ai
> bien trouvé un article sur le support Microsoft mais qui concerne
> uniquement
> Windows 2003.
>
> Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas


trop
> satisfaisantes.
> Merci d'avance.
>
>
>




Avatar
X
Salut,

"Langage système", utilisable avec n'importe quel compilateur sachant
compilé, notamment en ASM...
Y en a parfois qui n'utilisent que ça dans VB (pour gérer les fichiers par
exemple), c'est compliquer à outrance, c'est dénaturer le langage basic et
c'est compliquer toute portabilité entre les OS, c'est aussi grossir le code
si ça ne fait pas partie du noyau mais d'une dll, ocx... A n'utiliser qu'en
dernier recours...
;o)

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
"Guy DETIENNE" a écrit dans le message de news:
%23%
Si ce n'est pas du VB ce que tu as proposé, qu'est-ce alors ?

Utiliser des API's ne signifie pas ne pas utiliser VB.
Disons plutôt que tu utilises des librairies de fonctions externes, ici,
écrites en C, paliant ainsi les faiblesses de VB...

Guy


"X" a écrit dans le message de news:

Bonjour,

Pour appeler seulement, ça devrait suffire:

Shell "explorer.exe http://www.ifrance.com/Irolog";

Pour ouvrir et fermer, mais ce n'est pas en VB:

Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long _
) As Long
'
Private Declare Function TerminateProcess Lib "kernel32" ( _
ByVal hProcess As Long, _
ByVal uExitCode As Long _
) As Long
Private Declare Function CloseHandle Lib "kernel32" ( _
ByVal hObject As Long) As Long
'
Private Const PROCESS_TERMINATE = &H1
Dim NumProcess As Long
Dim RC As Long
Dim hProcess As Long
'
Sub ouvrir()
NumProcess = Shell(Nom_fic, 1)
End sub
Sub fermer()
hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
RC = TerminateProcess(hProcess, 0&)
RC = CloseHandle(hProcess)
End Sub


Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler l'exe
2 par Shelle, ensuite l'exe 2 fait son travail, le balance dans un
fichier et se ferme tout seul, puis l'exe 1 reprend les donnée dans le
fichier... Enfin, pour les cas généraux...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
"Hafe" a écrit dans le message de news:

J'ai un programme VB6 qui date de Windows NT puis Windows 2000.

Dans ce programme, pour appeler un exe externe et attendre la fin de son
exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec
(code
trouvé sur le site de Microsoft) : l'appel se fait correctement sous
Windows
Nt et Windows 2000 (Pro et Server).

Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout !
J'ai
bien trouvé un article sur le support Microsoft mais qui concerne
uniquement
Windows 2003.

Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas
trop
satisfaisantes.
Merci d'avance.













Avatar
X
On peut éventuellement temporiser derrière alors...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
a écrit dans le message de news:

La fonction Shell ne permet pas d'attendre la fin de l'exécution du
programme, c'est pour cela qu'il utilise la fonction CreateProcess()



"X" a écrit dans le message de
news:
Bonjour,

Pour appeler seulement, ça devrait suffire:

Shell "explorer.exe http://www.ifrance.com/Irolog";

Pour ouvrir et fermer, mais ce n'est pas en VB:

Private Declare Function OpenProcess Lib "kernel32" ( _
ByVal dwDesiredAccess As Long, _
ByVal bInheritHandle As Long, _
ByVal dwProcessId As Long _
) As Long
'
Private Declare Function TerminateProcess Lib "kernel32" ( _
ByVal hProcess As Long, _
ByVal uExitCode As Long _
) As Long
Private Declare Function CloseHandle Lib "kernel32" ( _
ByVal hObject As Long) As Long
'
Private Const PROCESS_TERMINATE = &H1
Dim NumProcess As Long
Dim RC As Long
Dim hProcess As Long
'
Sub ouvrir()
NumProcess = Shell(Nom_fic, 1)
End sub
Sub fermer()
hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
RC = TerminateProcess(hProcess, 0&)
RC = CloseHandle(hProcess)
End Sub


Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler l'exe
2
par Shelle, ensuite l'exe 2 fait son travail, le balance dans un fichier


et
se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
Enfin, pour les cas généraux...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
"Hafe" a écrit dans le message de news:

> J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>
> Dans ce programme, pour appeler un exe externe et attendre la fin de
> son
> exécution, j'utilisais la fonction CreateProcess et tout ce qui va avec
> (code
> trouvé sur le site de Microsoft) : l'appel se fait correctement sous
> Windows
> Nt et Windows 2000 (Pro et Server).
>
> Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout !


J'ai
> bien trouvé un article sur le support Microsoft mais qui concerne
> uniquement
> Windows 2003.
>
> Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas


trop
> satisfaisantes.
> Merci d'avance.
>
>
>








Avatar
Et tu vas faire comment pour savoir quand ton programme aura fini d'etre
exécuté ?
Dans son cas, Shell n'est pas adapté, c'est pour cela qu'il préfère utiliser
un truc plus sur : CreateProcess().


"X" a écrit dans le message de
news:
On peut éventuellement temporiser derrière alors...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
a écrit dans le message de news:

> La fonction Shell ne permet pas d'attendre la fin de l'exécution du
> programme, c'est pour cela qu'il utilise la fonction CreateProcess()
>
>
>
> "X" a écrit dans le message de
> news:
>> Bonjour,
>>
>> Pour appeler seulement, ça devrait suffire:
>>
>> Shell "explorer.exe http://www.ifrance.com/Irolog";
>>
>> Pour ouvrir et fermer, mais ce n'est pas en VB:
>>
>> Private Declare Function OpenProcess Lib "kernel32" ( _
>> ByVal dwDesiredAccess As Long, _
>> ByVal bInheritHandle As Long, _
>> ByVal dwProcessId As Long _
>> ) As Long
>> '
>> Private Declare Function TerminateProcess Lib "kernel32" ( _
>> ByVal hProcess As Long, _
>> ByVal uExitCode As Long _
>> ) As Long
>> Private Declare Function CloseHandle Lib "kernel32" ( _
>> ByVal hObject As Long) As Long
>> '
>> Private Const PROCESS_TERMINATE = &H1
>> Dim NumProcess As Long
>> Dim RC As Long
>> Dim hProcess As Long
>> '
>> Sub ouvrir()
>> NumProcess = Shell(Nom_fic, 1)
>> End sub
>> Sub fermer()
>> hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
>> RC = TerminateProcess(hProcess, 0&)
>> RC = CloseHandle(hProcess)
>> End Sub
>>
>>
>> Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler


l'exe
>> 2
>> par Shelle, ensuite l'exe 2 fait son travail, le balance dans un


fichier
> et
>> se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
>> Enfin, pour les cas généraux...
>>
>> --
>> Site ROMANS édités
>> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> Site LOGICIELS
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> Mail
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm

-------------------------------------------------------------------------




-
> ----------
>> "Hafe" a écrit dans le message de


news:
>>
>> > J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>> >
>> > Dans ce programme, pour appeler un exe externe et attendre la fin de
>> > son
>> > exécution, j'utilisais la fonction CreateProcess et tout ce qui va


avec
>> > (code
>> > trouvé sur le site de Microsoft) : l'appel se fait correctement sous
>> > Windows
>> > Nt et Windows 2000 (Pro et Server).
>> >
>> > Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout !
> J'ai
>> > bien trouvé un article sur le support Microsoft mais qui concerne
>> > uniquement
>> > Windows 2003.
>> >
>> > Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas
> trop
>> > satisfaisantes.
>> > Merci d'avance.
>> >
>> >
>> >
>>
>>
>
>




Avatar
X
Ben, 2, 3 secondes généralement c'est terminé, faut étalonner avec le temps
que mets le second exe, plus une marge; ou encore en lisant le fichier
produit par l'exe 2 , tant que pas lu, et si pas plus de x seconde, tente
une nouvelle lecture..
Mais bon, chacun son truc...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
a écrit dans le message de news:

Et tu vas faire comment pour savoir quand ton programme aura fini d'etre
exécuté ?
Dans son cas, Shell n'est pas adapté, c'est pour cela qu'il préfère
utiliser
un truc plus sur : CreateProcess().


"X" a écrit dans le message de
news:
On peut éventuellement temporiser derrière alors...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
a écrit dans le message de news:

> La fonction Shell ne permet pas d'attendre la fin de l'exécution du
> programme, c'est pour cela qu'il utilise la fonction CreateProcess()
>
>
>
> "X" a écrit dans le message de
> news:
>> Bonjour,
>>
>> Pour appeler seulement, ça devrait suffire:
>>
>> Shell "explorer.exe http://www.ifrance.com/Irolog";
>>
>> Pour ouvrir et fermer, mais ce n'est pas en VB:
>>
>> Private Declare Function OpenProcess Lib "kernel32" ( _
>> ByVal dwDesiredAccess As Long, _
>> ByVal bInheritHandle As Long, _
>> ByVal dwProcessId As Long _
>> ) As Long
>> '
>> Private Declare Function TerminateProcess Lib "kernel32" ( _
>> ByVal hProcess As Long, _
>> ByVal uExitCode As Long _
>> ) As Long
>> Private Declare Function CloseHandle Lib "kernel32" ( _
>> ByVal hObject As Long) As Long
>> '
>> Private Const PROCESS_TERMINATE = &H1
>> Dim NumProcess As Long
>> Dim RC As Long
>> Dim hProcess As Long
>> '
>> Sub ouvrir()
>> NumProcess = Shell(Nom_fic, 1)
>> End sub
>> Sub fermer()
>> hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
>> RC = TerminateProcess(hProcess, 0&)
>> RC = CloseHandle(hProcess)
>> End Sub
>>
>>
>> Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler


l'exe
>> 2
>> par Shelle, ensuite l'exe 2 fait son travail, le balance dans un


fichier
> et
>> se ferme tout seul, puis l'exe 1 reprend les donnée dans le fichier...
>> Enfin, pour les cas généraux...
>>
>> --
>> Site ROMANS édités
>> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> Site LOGICIELS
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> Mail
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm

-------------------------------------------------------------------------




-
> ----------
>> "Hafe" a écrit dans le message de


news:
>>
>> > J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>> >
>> > Dans ce programme, pour appeler un exe externe et attendre la fin de
>> > son
>> > exécution, j'utilisais la fonction CreateProcess et tout ce qui va


avec
>> > (code
>> > trouvé sur le site de Microsoft) : l'appel se fait correctement sous
>> > Windows
>> > Nt et Windows 2000 (Pro et Server).
>> >
>> > Depuis que je suis sous Windows XP, cela ne fonctionne plus du tout
>> > !
> J'ai
>> > bien trouvé un article sur le support Microsoft mais qui concerne
>> > uniquement
>> > Windows 2003.
>> >
>> > Quelqu'un a une idée ? Les autres méthodes à disposition ne sont pas
> trop
>> > satisfaisantes.
>> > Merci d'avance.
>> >
>> >
>> >
>>
>>
>
>








Avatar
efectivement, chacun son tuc : solution propre ou bidouille...

"X" a écrit dans le message de
news:
Ben, 2, 3 secondes généralement c'est terminé, faut étalonner avec le


temps
que mets le second exe, plus une marge; ou encore en lisant le fichier
produit par l'exe 2 , tant que pas lu, et si pas plus de x seconde, tente
une nouvelle lecture..
Mais bon, chacun son truc...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
a écrit dans le message de news:

> Et tu vas faire comment pour savoir quand ton programme aura fini d'etre
> exécuté ?
> Dans son cas, Shell n'est pas adapté, c'est pour cela qu'il préfère
> utiliser
> un truc plus sur : CreateProcess().
>
>
> "X" a écrit dans le message de
> news:
>> On peut éventuellement temporiser derrière alors...
>>
>> --
>> Site ROMANS édités
>> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> Site LOGICIELS
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> Mail
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm

-------------------------------------------------------------------------




-
> ----------
>> a écrit dans le message de news:
>>
>> > La fonction Shell ne permet pas d'attendre la fin de l'exécution du
>> > programme, c'est pour cela qu'il utilise la fonction CreateProcess()
>> >
>> >
>> >
>> > "X" a écrit dans le message de
>> > news:
>> >> Bonjour,
>> >>
>> >> Pour appeler seulement, ça devrait suffire:
>> >>
>> >> Shell "explorer.exe http://www.ifrance.com/Irolog";
>> >>
>> >> Pour ouvrir et fermer, mais ce n'est pas en VB:
>> >>
>> >> Private Declare Function OpenProcess Lib "kernel32" ( _
>> >> ByVal dwDesiredAccess As Long, _
>> >> ByVal bInheritHandle As Long, _
>> >> ByVal dwProcessId As Long _
>> >> ) As Long
>> >> '
>> >> Private Declare Function TerminateProcess Lib "kernel32" ( _
>> >> ByVal hProcess As Long, _
>> >> ByVal uExitCode As Long _
>> >> ) As Long
>> >> Private Declare Function CloseHandle Lib "kernel32" ( _
>> >> ByVal hObject As Long) As Long
>> >> '
>> >> Private Const PROCESS_TERMINATE = &H1
>> >> Dim NumProcess As Long
>> >> Dim RC As Long
>> >> Dim hProcess As Long
>> >> '
>> >> Sub ouvrir()
>> >> NumProcess = Shell(Nom_fic, 1)
>> >> End sub
>> >> Sub fermer()
>> >> hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
>> >> RC = TerminateProcess(hProcess, 0&)
>> >> RC = CloseHandle(hProcess)
>> >> End Sub
>> >>
>> >>
>> >> Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler
> l'exe
>> >> 2
>> >> par Shelle, ensuite l'exe 2 fait son travail, le balance dans un
> fichier
>> > et
>> >> se ferme tout seul, puis l'exe 1 reprend les donnée dans le


fichier...
>> >> Enfin, pour les cas généraux...
>> >>
>> >> --
>> >> Site ROMANS édités
>> >> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> >> Site LOGICIELS
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> >> Mail
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
>>

------------------------------------------------------------------------






-
> -
>> > ----------
>> >> "Hafe" a écrit dans le message de
> news:
>> >>
>> >> > J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>> >> >
>> >> > Dans ce programme, pour appeler un exe externe et attendre la fin


de
>> >> > son
>> >> > exécution, j'utilisais la fonction CreateProcess et tout ce qui va
> avec
>> >> > (code
>> >> > trouvé sur le site de Microsoft) : l'appel se fait correctement


sous
>> >> > Windows
>> >> > Nt et Windows 2000 (Pro et Server).
>> >> >
>> >> > Depuis que je suis sous Windows XP, cela ne fonctionne plus du


tout
>> >> > !
>> > J'ai
>> >> > bien trouvé un article sur le support Microsoft mais qui concerne
>> >> > uniquement
>> >> > Windows 2003.
>> >> >
>> >> > Quelqu'un a une idée ? Les autres méthodes à disposition ne sont


pas
>> > trop
>> >> > satisfaisantes.
>> >> > Merci d'avance.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>




Avatar
X
L'API dans un langage VB, c'est comme de l'assembleur en ligne (assembler in
line) dans du C, ce n'est pas une solution "propre", c'est de l'ultime quand
on ne peut rien faire d'autre de rationnel :o)
On voit de plus en plus des API ici, alors qu'on peut faire du VB, dans ce
cas, si on veut faire du langage système, il faut le faire en assembleur,
qui désormais, à part son code propre, utilise les API... Ce n'est pas un
forum de programmation système...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
a écrit dans le message de news:

efectivement, chacun son tuc : solution propre ou bidouille...

"X" a écrit dans le message de
news:
Ben, 2, 3 secondes généralement c'est terminé, faut étalonner avec le


temps
que mets le second exe, plus une marge; ou encore en lisant le fichier
produit par l'exe 2 , tant que pas lu, et si pas plus de x seconde, tente
une nouvelle lecture..
Mais bon, chacun son truc...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
a écrit dans le message de news:

> Et tu vas faire comment pour savoir quand ton programme aura fini
> d'etre
> exécuté ?
> Dans son cas, Shell n'est pas adapté, c'est pour cela qu'il préfère
> utiliser
> un truc plus sur : CreateProcess().
>
>
> "X" a écrit dans le message de
> news:
>> On peut éventuellement temporiser derrière alors...
>>
>> --
>> Site ROMANS édités
>> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> Site LOGICIELS
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> Mail
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm

-------------------------------------------------------------------------




-
> ----------
>> a écrit dans le message de news:
>>
>> > La fonction Shell ne permet pas d'attendre la fin de l'exécution du
>> > programme, c'est pour cela qu'il utilise la fonction CreateProcess()
>> >
>> >
>> >
>> > "X" a écrit dans le message de
>> > news:
>> >> Bonjour,
>> >>
>> >> Pour appeler seulement, ça devrait suffire:
>> >>
>> >> Shell "explorer.exe http://www.ifrance.com/Irolog";
>> >>
>> >> Pour ouvrir et fermer, mais ce n'est pas en VB:
>> >>
>> >> Private Declare Function OpenProcess Lib "kernel32" ( _
>> >> ByVal dwDesiredAccess As Long, _
>> >> ByVal bInheritHandle As Long, _
>> >> ByVal dwProcessId As Long _
>> >> ) As Long
>> >> '
>> >> Private Declare Function TerminateProcess Lib "kernel32" ( _
>> >> ByVal hProcess As Long, _
>> >> ByVal uExitCode As Long _
>> >> ) As Long
>> >> Private Declare Function CloseHandle Lib "kernel32" ( _
>> >> ByVal hObject As Long) As Long
>> >> '
>> >> Private Const PROCESS_TERMINATE = &H1
>> >> Dim NumProcess As Long
>> >> Dim RC As Long
>> >> Dim hProcess As Long
>> >> '
>> >> Sub ouvrir()
>> >> NumProcess = Shell(Nom_fic, 1)
>> >> End sub
>> >> Sub fermer()
>> >> hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
>> >> RC = TerminateProcess(hProcess, 0&)
>> >> RC = CloseHandle(hProcess)
>> >> End Sub
>> >>
>> >>
>> >> Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler
> l'exe
>> >> 2
>> >> par Shelle, ensuite l'exe 2 fait son travail, le balance dans un
> fichier
>> > et
>> >> se ferme tout seul, puis l'exe 1 reprend les donnée dans le


fichier...
>> >> Enfin, pour les cas généraux...
>> >>
>> >> --
>> >> Site ROMANS édités
>> >> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> >> Site LOGICIELS
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> >> Mail
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
>>

------------------------------------------------------------------------






-
> -
>> > ----------
>> >> "Hafe" a écrit dans le message de
> news:
>> >>
>> >> > J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>> >> >
>> >> > Dans ce programme, pour appeler un exe externe et attendre la fin


de
>> >> > son
>> >> > exécution, j'utilisais la fonction CreateProcess et tout ce qui
>> >> > va
> avec
>> >> > (code
>> >> > trouvé sur le site de Microsoft) : l'appel se fait correctement


sous
>> >> > Windows
>> >> > Nt et Windows 2000 (Pro et Server).
>> >> >
>> >> > Depuis que je suis sous Windows XP, cela ne fonctionne plus du


tout
>> >> > !
>> > J'ai
>> >> > bien trouvé un article sur le support Microsoft mais qui concerne
>> >> > uniquement
>> >> > Windows 2003.
>> >> >
>> >> > Quelqu'un a une idée ? Les autres méthodes à disposition ne sont


pas
>> > trop
>> >> > satisfaisantes.
>> >> > Merci d'avance.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>








Avatar
Guy DETIENNE
En effet, X aime bidouiller..., et c'est normal puisqu'il ne comprend pas l'utilité
des API's dans VB. Alors il reste la bidouille pour essayer de s'en passer.
Et tout bon programmeur qui se respecte sait qu'une bidouille ne fonctionne
que dans un contexte bien précis. Outre ce contexte, bonjour les jolis
plantages.



Et je crois que X ne comprend pas non plus l'utilité d'une API à travers VB.

VB n'est pas suffisant que pour pouvoir effectuer une multitude de tâches,
qui pourtant sont essentielles sous Windows.



Que faut-il faire alors dans ce cas ? Se passer de ces fonctionnalités sous
prétexte de ne pas "dénaturer" VB ? Peut-être que ton niveau de
programmation n'exige pas l'emploi d'API's.

Me concernant, je ne pourrais pas faire autrement sinon peut-être passer à
un autre langage.



Je crois réellement que tu es allergique aux API's, sans doute à cause de ta
méconnaissance de celles-ci. Pour preuve, tu qualifies leur utilisation de
programmation « système » et même d'irrationnelle.



Qu'est-ce la programmation système pour toi ?



Et pour ta gouverne, VB n'est absolument pas portable ! Donc je ne
comprends pas ton argumentation concernant la portabilité.



Et puis le Shell avec un timer histoire d'attendre la fin de l'exécution d'un
programme, cela relève du grand art ! Dans ce cas, tu es perdu sans API !



Connaissant le personnage (ancien pseudo : LE TROLL), inutile d'engager un
quelconque débat ici, cela risque de tourner au pugilat ;O) Mais se
serait-il assagi depuis ?



Allez bonne prog' et bonne bidouille en ce qui te concerne. Mais il est
dommage que certaines personnes posant des questions tombent parfois sur des
réponses comme les tiennes.

Je ne prétends pas tout savoir, mais à défaut de connaître la réponse, je m'abstiens
de dire des énormités.



Guy



"X" a écrit dans le message de news:
%

L'API dans un langage VB, c'est comme de l'assembleur en ligne (assembler
in line) dans du C, ce n'est pas une solution "propre", c'est de l'ultime
quand on ne peut rien faire d'autre de rationnel :o)
On voit de plus en plus des API ici, alors qu'on peut faire du VB, dans ce
cas, si on veut faire du langage système, il faut le faire en assembleur,
qui désormais, à part son code propre, utilise les API... Ce n'est pas un
forum de programmation système...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
------------------------------------------------------------------------------------
a écrit dans le message de news:

efectivement, chacun son tuc : solution propre ou bidouille...

"X" a écrit dans le message de
news:
Ben, 2, 3 secondes généralement c'est terminé, faut étalonner avec le


temps
que mets le second exe, plus une marge; ou encore en lisant le fichier
produit par l'exe 2 , tant que pas lu, et si pas plus de x seconde,
tente
une nouvelle lecture..
Mais bon, chacun son truc...

--
Site ROMANS édités
http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
Site LOGICIELS
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
Mail
http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
--------------------------------------------------------------------------


----------
a écrit dans le message de news:

> Et tu vas faire comment pour savoir quand ton programme aura fini
> d'etre
> exécuté ?
> Dans son cas, Shell n'est pas adapté, c'est pour cela qu'il préfère
> utiliser
> un truc plus sur : CreateProcess().
>
>
> "X" a écrit dans le message de
> news:
>> On peut éventuellement temporiser derrière alors...
>>
>> --
>> Site ROMANS édités
>> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> Site LOGICIELS
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> Mail
>> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm

-------------------------------------------------------------------------




-
> ----------
>> a écrit dans le message de news:
>>
>> > La fonction Shell ne permet pas d'attendre la fin de l'exécution du
>> > programme, c'est pour cela qu'il utilise la fonction
>> > CreateProcess()
>> >
>> >
>> >
>> > "X" a écrit dans le message de
>> > news:
>> >> Bonjour,
>> >>
>> >> Pour appeler seulement, ça devrait suffire:
>> >>
>> >> Shell "explorer.exe http://www.ifrance.com/Irolog";
>> >>
>> >> Pour ouvrir et fermer, mais ce n'est pas en VB:
>> >>
>> >> Private Declare Function OpenProcess Lib "kernel32" ( _
>> >> ByVal dwDesiredAccess As Long, _
>> >> ByVal bInheritHandle As Long, _
>> >> ByVal dwProcessId As Long _
>> >> ) As Long
>> >> '
>> >> Private Declare Function TerminateProcess Lib "kernel32" ( _
>> >> ByVal hProcess As Long, _
>> >> ByVal uExitCode As Long _
>> >> ) As Long
>> >> Private Declare Function CloseHandle Lib "kernel32" ( _
>> >> ByVal hObject As Long) As Long
>> >> '
>> >> Private Const PROCESS_TERMINATE = &H1
>> >> Dim NumProcess As Long
>> >> Dim RC As Long
>> >> Dim hProcess As Long
>> >> '
>> >> Sub ouvrir()
>> >> NumProcess = Shell(Nom_fic, 1)
>> >> End sub
>> >> Sub fermer()
>> >> hProcess = OpenProcess(PROCESS_TERMINATE, -1&, NumProcess)
>> >> RC = TerminateProcess(hProcess, 0&)
>> >> RC = CloseHandle(hProcess)
>> >> End Sub
>> >>
>> >>
>> >> Sinon, j ne comprends pas pourqoi tout ça??? Un exe 1 peut appeler
> l'exe
>> >> 2
>> >> par Shelle, ensuite l'exe 2 fait son travail, le balance dans un
> fichier
>> > et
>> >> se ferme tout seul, puis l'exe 1 reprend les donnée dans le


fichier...
>> >> Enfin, pour les cas généraux...
>> >>
>> >> --
>> >> Site ROMANS édités
>> >> http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://www.manuscritdepot.com/a.joseph-attila-pusztay.1.htm
>> >> Site LOGICIELS
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr
>> >> Mail
>> >> http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr" target="_blank" class="text-blue hover:opacity-90 " style="word-break: break-all;" rel="noopener nofollow">http://irolog.free.fr/ecrire/index.htm
>>

------------------------------------------------------------------------






-
> -
>> > ----------
>> >> "Hafe" a écrit dans le message de
> news:
>> >>
>> >> > J'ai un programme VB6 qui date de Windows NT puis Windows 2000.
>> >> >
>> >> > Dans ce programme, pour appeler un exe externe et attendre la
>> >> > fin


de
>> >> > son
>> >> > exécution, j'utilisais la fonction CreateProcess et tout ce qui
>> >> > va
> avec
>> >> > (code
>> >> > trouvé sur le site de Microsoft) : l'appel se fait correctement


sous
>> >> > Windows
>> >> > Nt et Windows 2000 (Pro et Server).
>> >> >
>> >> > Depuis que je suis sous Windows XP, cela ne fonctionne plus du


tout
>> >> > !
>> > J'ai
>> >> > bien trouvé un article sur le support Microsoft mais qui
>> >> > concerne
>> >> > uniquement
>> >> > Windows 2003.
>> >> >
>> >> > Quelqu'un a une idée ? Les autres méthodes à disposition ne sont


pas
>> > trop
>> >> > satisfaisantes.
>> >> > Merci d'avance.
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>












1 2