>LaunchURL()  calls the function ShellExecute() to start your default
>browser.    Because ShellExecute is not a Mapbasic function but a Windows
>API function, you will need to pre-declare it.
>
>You must include a statement like the following in the declaration section
>of your Mapbasic program.
>
>Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
> (ByVal hwnd As Integer, ByVal lpOperation As String, ByVal lpFile As
>  String, ByVal lpParameters As String, ByVal lpDirectory As String,
>  ByVal nShowCmd As Integer) As Integer

Thanks, David, for straightening that out. Yes, without that declaration,
my code isn't much help. Here are the missing lines from my code. I didn't
use ByVal on all the parameters.

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (
     ByVal hwnd As Integer,
     lpOperation As String,
     lpFile As String,
     ByBal lpParameters As Integer,
     lpDirectory As String,
     ByVal nShowCmd As Integer) As Integer


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to