Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a VFP 5.0 program to spawn/call a browser and em
Message
From
25/08/1998 04:04:45
 
 
To
24/08/1998 23:27:13
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00129224
Message ID:
00129589
Views:
31
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform