 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bob Guest
|
Posted: Sat Jul 03, 2004 10:45 pm Post subject: pb shellexecutex |
|
|
j'ai ce bout de code:
SHELLEXECUTEINFO info = {sizeof(info)};
//ZeroMemory(&info,sizeof(info));
info.lpVerb = "open";
info.lpFile = "iexplore";
info.lpParameters = "-nohome";
info.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_DDEWAIT;
//info.nShow = SW_SHOWNORMAL;
info.nShow = SW_HIDE;
//ShellExecuteEx(&info);
if (!ShellExecuteEx(&info))
{
MessageBox(0,"Erreur lors de l'execution de IE","info",0);
DWORD err = GetLastError();
char texte[200];
sprintf(texte,"valeur : %dn",err);
MessageBox(0,texte,"info",0);
return 0;
}
le probleme est que desfois (de maniere assez aleatoire...),
ShellExecuteEx ne marche pas. L'erreur renvoyée par GetLastError est
ERROR_ACCESS_DENIED.
seulement je ne vois vraiment pas pourquoi.
qq'un a une idée ?!?
|
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
Posted: Sat Jul 03, 2004 11:16 pm Post subject: Re: pb shellexecutex |
|
|
On 3 Jul 2004 15:45:55 -0700, [email]bobofdacosmos (AT) yahoo (DOT) fr[/email] (Bob):
| Quote: | ShellExecuteEx ne marche pas
|
Complètement hors-sujet ici. Cf fr.comp.os.ms-windows.programmation.
Attenion, fu2 positionné.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|