In C in Windows, how do I open a website using the default browser? In Mac OS X, I do system("open http://url");
In C in Windows, how do I open a website using the default browser?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to use
ShellExecute().The C code to do that is as simple as:
This was documented by Microsoft Knowledge Base article KB 224816, but unfortunately the article has been retired and there’s no archived version of it.