C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pb shellexecutex

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Bob
Guest





PostPosted: Sat Jul 03, 2004 10:45 pm    Post subject: pb shellexecutex Reply with quote



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





PostPosted: Sat Jul 03, 2004 11:16 pm    Post subject: Re: pb shellexecutex Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.