ShellExecute not opening page on Windows 8 when chrome is the default browser [duplicate]-Collection of common programming errors
I have an elevated desktop application that sometimes opens webpages on errors. The problem I am having is on Windows 8 when Chrome is set as the default browser. It does not open the page, running the process non elevated works fine… Here is how I’m opening the page:
ShellExecute( NULL, TEXT("open"),sPageURL,NULL, NULL, SW_SHOWNORMAL );
where sPageURL is the url of the page.
I also tried opening an elevated CMD and opening a web page such as google.com through it like so:
start http://www.google.com
I got the error "Class not registered"
.
What is the best alternative way to overcome this issue?