How to open the default web browser in Windows in C?

前端 未结 3 1305
借酒劲吻你
借酒劲吻你 2020-12-16 12:56

In C in Windows, how do I open a website using the default browser? In Mac OS X, I do system(\"open http://url\");

3条回答
  •  时光说笑
    2020-12-16 13:33

    In Windows, you can use start http://url on the command line to open an URL in the default browser. However, this seems to be specific to the command prompt and is not a real executable, so I don't think you can start it from your C/C++ program.

提交回复
热议问题