1

我用:

auto c = Concurrency::create_task( Windows::UI::WindowManagement::AppWindow::TryCreateAsync());
c.then([](Windows::UI::WindowManagement::AppWindow^ aw) { aw->TryShowAsync(); });

但它返回 HRESULT:0x80070490 未找到元素。

4

1 回答 1

0

问题是因为我不是从 UI 线程创建了任务(c 任务)。

于 2020-06-04T06:51:36.923 回答