Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute
Message
De
05/03/2004 14:51:36
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
04/03/2004 04:58:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00882701
Message ID:
00883637
Vues:
8
Robert,

Thanks for the response. Yes, your example works and this is what I am already doing, but I want a new browser to display each time. This example will use an existing open browser session if there is one.

Thanks,

Jerry


>Hi Jerry!
>
>If you want to use ShellExecute you could try this code:
>
>
>PROCEDURE openUrl(cUrl as String) as VOID
>	DECLARE INTEGER ShellExecute IN shell32 integer hWnd,string lpOperation,string lpFile,string lpParameter,;
>		string lpDirectory,integer nShowCmd
>	ShellExecute(0,"open",ALLTRIM(cUrl),"","",1)
>ENDPROC
>
>
>This works quite fine opening the default browser.
>
>HTH
>
>>I am using the ShellExecute api in a VFP Windows application. When a user press a button in my WinForm, I call ShellExecute and pass a URL to open a browser and display the website/page.
>>
>>This works fine except that ShellExecute will use either any open browser to display the page or open the default browser to display the page if a browser isn't open already.
>>
>>Is there a way to force ShellExecute to always open a new browser to display the page and ignore any open browser? Or is there a better way to call IE and pass it a URL to display?
>>
>>Thanks,
>>
>>Jerry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform