launchurisync不';不能在Windows 8.1上工作 我试图在Windows 81/Windows 8.1手机上使用默认应用程序打开外部链接,通用的C++应用程序,不幸的是它不起作用。它也不会崩溃,下面是代码(来自Microsoft站点): auto-uri=ref新窗口::基础::uri(“http://www.bing.com"); void主页::DefaultLaunch() { //启动URI 并发::任务启动操作(Windows::系统::启动器::启动同步(uri)); 启动操作。然后([](bool success) { 如果(成功) { //URI发布 } 其他的 { //URI启动失败 } }); }
有什么想法吗?我有互联网客户端的能力launchurisync不';不能在Windows 8.1上工作 我试图在Windows 81/Windows 8.1手机上使用默认应用程序打开外部链接,通用的C++应用程序,不幸的是它不起作用。它也不会崩溃,下面是代码(来自Microsoft站点): auto-uri=ref新窗口::基础::uri(“http://www.bing.com"); void主页::DefaultLaunch() { //启动URI 并发::任务启动操作(Windows::系统::启动器::启动同步(uri)); 启动操作。然后([](bool success) { 如果(成功) { //URI发布 } 其他的 { //URI启动失败 } }); },c++,windows,windows-phone-8.1,C++,Windows,Windows Phone 8.1,有什么想法吗?我有互联网客户端的能力 auto uri = ref new Windows::Foundation::Uri("http://www.bing.com"); void MainPage::DefaultLaunch() { // Launch the URI concurrency::task<bool> launchUriOperation(Windows::System::Launcher::LaunchUriAsync(uri)); laun
auto uri = ref new Windows::Foundation::Uri("http://www.bing.com");
void MainPage::DefaultLaunch()
{
// Launch the URI
concurrency::task<bool> launchUriOperation(Windows::System::Launcher::LaunchUriAsync(uri));
launchUriOperation.then([](bool success)
{
if (success)
{
// URI launched
}
else
{
// URI launch failed
}
});
}