ShellExecute doesn't open page in Windows 8 when Chrome is the default browser

I have an elevated desktop application that sometimes opens web pages in case of errors. The problem I encountered is related to Windows 8 when Chrome is installed as the default browser. It doesnโ€™t open the page, the process works without the add-in perfectly ... Here's how I open the page:

ShellExecute( NULL, TEXT("open"),sPageURL,NULL, NULL, SW_SHOWNORMAL );

where sPageURL is the URL of the page.

I also tried to open the elevated CMD and open a webpage like google.com, like this:

start http://www.google.com

I got a "Class not registered" error.

What is the best alternative way to overcome this problem?

+4
source share
1 answer

Perhaps this is due to the fact that you are using Google in Windows 8 "App" mode, and not in "Desktop" mode.

This will even cause google chrome to crash because file explorer is open in elevated mode. (I do not know why).

Best

0
source

All Articles