Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
X
Bonjour,
L'appel par exemple:
Dim r r = Shell("calc.exe", vbHide) ' Exécute appli Calculatrice invisible
Je crois que ça ne marche qu'avec l'IE, sinon faut laisser VB et prendre les API...
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long ShellExecute Me.hwnd, "Open", "programX.exe, "", App.Path, vbHide
Pas certains pour VBhide en fin (ici) ???
------ Site logiciels http://irolog.free.fr Mail http://irolog.free.fr/ecrire/index.htm Site perso http://irolog.free.fr/joe/index.htm Principe d'utilisation des news Groups http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm ------------------------------------------------------------------------------------ "Long YE-SU" a écrit dans le message de news: 443a0222$0$20139$
Bonjour,
comment lancer un programme en tâche de fond depuis VB ? (en fait j'ai un VB qui proviens d'une application industrielle , c'est un VB allégé)
ou le mettre en mode réduit ?
Salutations Long YE-SU
Bonjour,
L'appel par exemple:
Dim r
r = Shell("calc.exe", vbHide) ' Exécute appli Calculatrice invisible
Je crois que ça ne marche qu'avec l'IE, sinon faut laisser VB et prendre les
API...
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
ShellExecute Me.hwnd, "Open", "programX.exe, "", App.Path, vbHide
Pas certains pour VBhide en fin (ici) ???
------
Site logiciels
http://irolog.free.fr
Mail
http://irolog.free.fr/ecrire/index.htm
Site perso
http://irolog.free.fr/joe/index.htm
Principe d'utilisation des news Groups
http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm
------------------------------------------------------------------------------------
"Long YE-SU" <yesu.sdsi@wanadoo.fr> a écrit dans le message de news:
443a0222$0$20139$8fcfb975@news.wanadoo.fr...
Bonjour,
comment lancer un programme en tâche de fond depuis VB ?
(en fait j'ai un VB qui proviens d'une application industrielle , c'est un
VB allégé)
Dim r r = Shell("calc.exe", vbHide) ' Exécute appli Calculatrice invisible
Je crois que ça ne marche qu'avec l'IE, sinon faut laisser VB et prendre les API...
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long ShellExecute Me.hwnd, "Open", "programX.exe, "", App.Path, vbHide
Pas certains pour VBhide en fin (ici) ???
------ Site logiciels http://irolog.free.fr Mail http://irolog.free.fr/ecrire/index.htm Site perso http://irolog.free.fr/joe/index.htm Principe d'utilisation des news Groups http://support.microsoft.com/directory/worldwide/fr/newsgroup/regles.htm ------------------------------------------------------------------------------------ "Long YE-SU" a écrit dans le message de news: 443a0222$0$20139$
Bonjour,
comment lancer un programme en tâche de fond depuis VB ? (en fait j'ai un VB qui proviens d'une application industrielle , c'est un VB allégé)