April 26th, 1999, 01:30 PM
How might I go about executing the default browser or IE and load a .html file?
Thanks in advance.
Thanks in advance.
|
Click to See Complete Forum and Search --> : Load .html file into default browser April 26th, 1999, 01:30 PM How might I go about executing the default browser or IE and load a .html file? Thanks in advance. Smriti April 27th, 1999, 02:36 AM Hi, One of the ways in which you can get this done is by using ShellExecuteEx. Fill in the SHELLEXECUTEINFO structure by passing the full path of the file for lpFile. A sample code is as follows: SHELLEXECUTEINFO pShell; pShell.cbSize = sizeof(SHELLEXECUTEINFO); pShell.fMask = NULL ; pShell.hwnd = GetSafeHwnd(); pShell.lpVerb = NULL; pShell.lpFile = "c:\\mydocuments\\test.html"; pShell.lpParameters = NULL; pShell.lpDirectory = NULL; pShell.nShow = SW_SHOWNORMAL; pShell.hInstApp = NULL; ShellExecuteEx(&pShell); Hope this helps. Regards, Smriti Venkatesh email:smritivenkatesh@aditi.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |