launch an html file
-
I assume a browser window did not open the specified file. What value did
ShellExecute()
return?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
I assume a browser window did not open the specified file. What value did
ShellExecute()
return?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
DavidCrow wrote: assume a browser window did not open the specified file. Yes it is true the value is 2 /\|-||\/|/\|)
-
DavidCrow wrote: assume a browser window did not open the specified file. Yes it is true the value is 2 /\|-||\/|/\|)
Halawlaws wrote: the value is 2 Look at the link I provided you earlier. 2 =
ERROR_FILE_NOT_FOUND
. That should be easy enough to diagnose.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Halawlaws wrote: the value is 2 Look at the link I provided you earlier. 2 =
ERROR_FILE_NOT_FOUND
. That should be easy enough to diagnose.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Does it work with other .htm files? If you open Windows Explorer and go to the c:\help folder, does double-clicking on the index.htm file open the browser? Are you sure the extension is .htm and not .html? Have you checked the file association in Windows Explorer to make sure that .htm files have an associated application?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Does it work with other .htm files? If you open Windows Explorer and go to the c:\help folder, does double-clicking on the index.htm file open the browser? Are you sure the extension is .htm and not .html? Have you checked the file association in Windows Explorer to make sure that .htm files have an associated application?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
What you have should work. Given that it does not, something else is amuck with your machine. This is just a grasp but what if you replace the first parameter with a real window handle instead of
NULL
? This way if the browser needs to report an error, it can. Windows Explorer might be compensating for something that is missing. UseFindExecutable()
to retrieve the name of the .exe that is associated with the .htm file.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
What you have should work. Given that it does not, something else is amuck with your machine. This is just a grasp but what if you replace the first parameter with a real window handle instead of
NULL
? This way if the browser needs to report an error, it can. Windows Explorer might be compensating for something that is missing. UseFindExecutable()
to retrieve the name of the .exe that is associated with the .htm file.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Don't worry it worked apparently it turned out that the file path was correct but the file name of my file is index.html and not index.htm. Thanks for ur help in debugging and sorry for wasting your time ciao /\|-||\/|/\|)
I suspected that but you did not indicate it was a problem so I pursued other possibilities. Halawlaws wrote: ...sorry for wasting your time If the net result is that you learned something, how has time been wasted?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb