Determining if a file of directory exists

Started by
12 comments, last by TheC00L1 17 years, 10 months ago
Quote:Original post by TheC00L1
Ummm.... sorry, let me clarify myself, open up internet explorer and having a webpage load.


The only method I know would be to use ShellExecute, passing in the URL, but there has to be a better way.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
How would you pass the url? Into the parameters?
Would it be better to create a shortcut file(.ink) and use ShellExecute with that?

A wiseman once said nothing, but no one was there to hear it.
ShellExecute(NULL, _T("open"), strHTMLFile, NULL, NULL, SW_SHOWNORMAL);

where strHTMLFile is the name of the html file you wish to open. Either as relative or absolute path.

See MSDN for more details.
Marcus SpeightIf at first you don't succeed.
Destroy all evidence that you tried.
Thanx, sooo much!!!!
A wiseman once said nothing, but no one was there to hear it.

This topic is closed to new replies.

Advertisement