|
-
April 26th, 1999, 01:30 PM
#1
Load .html file into default browser
How might I go about executing the default browser or IE and load a .html file?
Thanks in advance.
-
April 27th, 1999, 02:36 AM
#2
Re: Load .html file into default browser
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:[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|