In a program I'm developing I want the help to be on the internet, so I've got this so far:Obviously there are a couple of problems with this method. Firstly WinExec isn't unicode which is a problem. Secondly, I have to hard code the path of the browser, so if you're not using internet explorer and it's not stored in C:\Program Files\Internet Explorer you're out of luck.Code:case ID_HELP_ONLINEHELP: { char PathtoNet[] = "C:\\Program Files\\Internet Explorer\\iexplore.exe www.newscientist.com"; WinExec(PathtoNet, SW_SHOWNORMAL); } break;
This brings me, finally, to my question. Does windows maintain somewhere the path to the executable of the default browser for the system? If not how would I go about obtaining this.
btw newscientist is just my test website.