用C ++打开网站 [英] Opening A Website with C++

查看:121
本文介绍了用C ++打开网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码从我的c ++应用程序打开网站.它比冬天的糖蜜慢.还有其他方法可以一定速度吗?
谢谢.

I''m using the following code to open a website from my c++ app. It''s slower than molasses n winter. Any other way to do this with some speed?
Thank you.

ShellExecute(NULL, "open", "http://www.yahoo.com/",NULL, NULL, SW_SHOWNORMAL);

推荐答案

应该比实际运行IE并在地址栏中输入URL的速度慢.本质上,您要做的就是如果用户单击Word之类的应用程序中的链接(而不是单击网页上的链接,在这种情况下您已经在运行IE)会发生什么.
Shouldn''t be any slower than actually running IE and typing the URL into the address bar. Essentially, all you are doing is what would happen if a user clicked on a link in an application like Word (as opposed to clicking on a link on a web page, in that case you are already running IE).


关于Windows如何执行应用程序缓存,第二次打开页面时,您将获得更快的响应.如果加载时间有问题,则已经加载/打开默认浏览器肯定会有所帮助.
With regards to how Windows performs application caching, you would get a faster response the second time you open a page. Having the default browser already loaded/opened will definitely help if load time is an issue.


这篇关于用C ++打开网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆