admin管理员组文章数量:1130349
#include <windows.h>
#include <tchar.h>
#include <assert.h>
#include <shellapi.h>
const TCHAR szOperation[] = _T("open");
const TCHAR szURL[] = _T("https://www.qq/");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd, int
nShow)
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szURL, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
return 0;
}
#include <windows.h>
#include <tchar.h>
#include <assert.h>
#include <shellapi.h>
const TCHAR szOperation[] = _T("open");
const TCHAR szURL[] = _T("https://www.qq/");
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd, int
nShow)
{
HINSTANCE hRslt = ShellExecute(NULL, szOperation,
szURL, NULL, NULL, SW_SHOWNORMAL);
assert(hRslt > (HINSTANCE)HINSTANCE_ERROR);
return 0;
}
版权声明:本文标题:C++ 调用默认浏览器 打开指定网址 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1727322629a730447.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论