問題タブ [iasyncoperation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
async-await - C++/COM を使用して IAsyncOperation を待機する方法
C++ と COM を使用して WinRT API にアクセスしています。
次のコードは私に与えますresults == unspecified
一方、呼び出しresults == allowed
を追加すると得られます。Sleep
明らかに、AsyncOperation が終了したときにコールバックを受信するのを待つ必要があります。私は前者をしたいと思います。COM を使用して C++ から WinRT IAsyncOperation を待機するにはどうすればよいですか?