Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a VFP 5.0 program to spawn/call a browser and em
Message
De
25/08/1998 04:04:45
 
 
À
24/08/1998 23:27:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00129224
Message ID:
00129589
Vues:
29
>>Thanks for all your replies! :)
>>
>>But am I limited to only using IE? How do I launch the system's default browser? Be it IE or Netscape. :)
>>
>>Likewise the default email?
>>
>>Thanks again
>>Ian
>
>That's the beauty of either of these methods, you don't have to what browser or mail reader the user uses. Shellexecute looks in the registry for the default program to use for a certain type of file/ URL.

Let's take stock of:
DECLARE INTEGER GetDesktopWindow IN WIN32API
DECLARE INTEGER ShellExecute IN SHELL32 ;
	INTEGER, STRING, STRING, STRING, STRING, INTEGER

hWnd = GetDesktopWindow()
*** To spawn a browser; the magic word - "HTTP://" :)
ShellExecute( hWnd, 'open', 'http://www.levelextreme.com', '', '.', 5)

*** To create email message; the magic word - "MailTo:"
ShellExecute( hWnd, 'open', 'mailto:Name@DomainName', '', '.', 5)
Alex.
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform