FoxPro Programming
launching mailto: from vfp
Gravatar is a globally recognized avatar based on your email address. launching mailto: from vfp
  Michael Hogan (Ideate Hosting)
  All
  Feb 3, 2024 @ 03:10pm

I have a client with a VFP desktop application running on Win 11 64-bit.

On hitting a command button, his application launches a pre-populated email message in the default mail client using ShellExecute within the _hyperlink.vcx VFP class. When I run the project within the VFP development environment, it calls up his Outlook application as expected.

BUT When the same project is compiled into an EXE, it activates an Edge browser window instead.

Thoughts?

Gravatar is a globally recognized avatar based on your email address. re: launching mailto: from vfp
  Michael Hogan (Ideate Hosting)
  Michael Hogan (Ideate Hosting)
  Feb 3, 2024 @ 05:00pm

I've decided to just ditch the _hyperlink.vcx and do ShellExecute from a standard command button...

Gravatar is a globally recognized avatar based on your email address. re: launching mailto: from vfp
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Feb 4, 2024 @ 09:41am

That's what I've been doing forever. I have a custom class that handles the UI display of a hyperlink label to show the underline and hover effect, but it defers to ShellExecute() or GoUrl() (both in wwutils.prg)...

+++ Rick ---

© 1996-2024