   Opening a help file [Solved]
  I'm currently writing a small little app and would like to be able to open the help file from inside the program. The help document is just a .html file so I just need a way of making the default internet program open it up. I've tried using _spawnv, system and CreateProcess without much success. Any help would be much appreciated.[Edited by - RamboBones on May 29, 2006 2:27:49 AM]
  You can call "%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" with the correct command line options."%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" yahoo.com will open yahoo.   ;Quote:Original post by KambizYou can call "%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" with the correct command line options."%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" yahoo.com will open yahoo.Okay I'm trying that until I can get the default internet program to open but I can't manage to format the CreateProcess command correctly to get it going. I'm currently usingCreateProcess("%PROGRAMFILES%\\Internet Explorer\\IEXPLORE.EXE",NULL,NULL,NULL,FALSE,NULL,NULL,NULL,&SI,π)But doesn't seem to work.   ;  ShellExecute(NULL,L"open",L"iexplore.exe",L"http://www.microsoft.com",NULL,SW_SHOWNORMAL);Maybe this will open the default browser:ShellExecute(NULL, L"open", L"http://www.microsoft.com", NULL, NULL, _SHOWNORMAL);   ;Quote:Original post by KambizYou can call "%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" with the correct command line options."%PROGRAMFILES%\Internet Explorer\IEXPLORE.EXE" yahoo.com will open yahoo.Calling IEXPLORE.EXE manualy is a bad idea - there are many people that are using some other browsers (Mozilla, Firefox, Opera etc). You should launch the default browser, not IE.Easiest way to open a html file in a default browser is by using ShellExecute function.Here is a simple use of the function:ShellExecute(NULL, "open", "readme.html", NULL, NULL, SW_SHOW);   ;  Ahh ShellExecute, the solution to all my problems.Thank you very much   