Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1790 connectés 

 


Dernière réponse
Sujet : Windows Mobile 6: Commande C++ pour lancer une application
1rageux Oki!  
Jpense avoir trouvé ce qu'il me faut!
Il faut utiliser la function ShellExecuteEx();
Voici le code:

Code :
  1. SHELLEXECUTEINFO ShExecInfo = {0};
  2.     ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
  3.     ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
  4.     ShExecInfo.hwnd = NULL;
  5.     ShExecInfo.lpVerb = L"open";
  6.     ShExecInfo.lpFile = L"http://www.google.ca/";       
  7.     ShExecInfo.lpParameters = NULL;
  8.     ShExecInfo.lpDirectory = NULL;
  9.     ShExecInfo.nShow = SW_SHOW;
  10.     ShExecInfo.hInstApp = NULL; 
  11. ShellExecuteEx(&ShExecInfo);


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
1rageux Oki!  
Jpense avoir trouvé ce qu'il me faut!
Il faut utiliser la function ShellExecuteEx();
Voici le code:

Code :
  1. SHELLEXECUTEINFO ShExecInfo = {0};
  2.     ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
  3.     ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
  4.     ShExecInfo.hwnd = NULL;
  5.     ShExecInfo.lpVerb = L"open";
  6.     ShExecInfo.lpFile = L"http://www.google.ca/";       
  7.     ShExecInfo.lpParameters = NULL;
  8.     ShExecInfo.lpDirectory = NULL;
  9.     ShExecInfo.nShow = SW_SHOW;
  10.     ShExecInfo.hInstApp = NULL; 
  11. ShellExecuteEx(&ShExecInfo);

1rageux Bonjour à tous!
 
Voila je développe un appli sous WM6 et je souhaites lancer une page Internet Explorer.
Je sais le faire sous WinXP avec le commande:ShellExecute( NULL, TEXT("open" ), TEXT("http://forum.hardware.fr/" ), NULL, NULL, SW_SHOW );  
Mais celle-ci ne marche pas sous WM6.
J'ai également essayer la commande: "system()" elle n'est pas reconnue non plus.
Connaissez vous une commande qui me permettrait de faire cela?
 
Merci

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)