I'm looking to open a default email program after a click on a hyperlink control in my app that links to an email address. For that I do the following:
//LPCTSTR addr = L"mailto:[email protected]";
ShellExecute(hParentWnd, _T("open"), addr, NULL, NULL, SW_SHOWNORMAL);
The approach above usually works by bringing up Outlook or Live Mail new email window with that address filled out in the "To:" field.
But when I have Google Chrome as my default web browser all I get is a blank Chrome browser window that simply shows my home page and nothing else.
So what am I doing wrong here?