matthewk
matthewk

Reputation: 1841

ShellExecuteEx or HlinkSimpleNavigateToString

I want to launch a web page in the default browser from my Win32 application. Both functions do the job. Is there any reason to use one or the other?

Upvotes: 0

Views: 181

Answers (1)

Jon Tackabury
Jon Tackabury

Reputation: 49289

ShellExecuteEx seems to be the preferred/recommended way of opening something, whether it's a file or webpage. ShellExecuteEx seems to be a more general purpose solution for opening any type of item using it's default handler. I always use ShellExecuteEx, and have never had a need to use HlinkSimpleNavigateToString.

Upvotes: 1

Related Questions