c++-winrt

C++/WinRT, part of Windows SDK 17134 is not compatible with Visual Studio 15.8 Preview 3

[亡魂溺海] 提交于 2019-11-29 06:54:15
Trying to compile the following code: #include <winrt/base.h> int main() {} With the following compiler options: /permissive- /std:c++latest With recently released Visual Studio 15.8 Preview 3.0 results in the following compilation errors: 1>------ Build started: Project: test1, Configuration: Debug x64 ------ 1>Source.cpp 1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185): error C3861: 'from_abi': identifier not found 1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185): note: This diagnostic occurred in the compiler

Is there a way of getting ConnectionStatus from IVpnProfile in a UWP application?

微笑、不失礼 提交于 2019-11-28 03:17:19
问题 I have the following WinRT code which works fine to discover active VPN Profiles: VpnManagementAgent vpn; auto profiles = vpn.GetProfilesAsync().get(); wprintf(L"Found %d profiles\n", profiles.Size()); for (auto vp : profiles) { wprintf(L"Found profile %s\n", vp.ProfileName().c_str()); } I would like to check the ConnectionStatus but this is not available on the IVpnProfile interface. I have tried adding the following to no avail as ConnectionStatus is available in the concrete

C++11 threads to update MFC application windows. SendMessage(), PostMessage() required?

白昼怎懂夜的黑 提交于 2019-11-27 23:22:57
After spending a bit of time with simple UWP applications with C++/CX and ++/WinRT I have begun to enjoy some of the features of targeting that environment for Windows UI app development. Now having to go back to a more familiar MFC application development I want to change my approach to something that is similar to UWP app development. The idea is to use asynchronous C++11 threads to generate content and modify content that is displayed in the MFC UI. The main change I want to make is to use C++11 threads to offload some time-consuming tasks and have those threads communicate the results back

C++11 threads to update MFC application windows. SendMessage(), PostMessage() required?

血红的双手。 提交于 2019-11-26 23:19:17
问题 After spending a bit of time with simple UWP applications with C++/CX and ++/WinRT I have begun to enjoy some of the features of targeting that environment for Windows UI app development. Now having to go back to a more familiar MFC application development I want to change my approach to something that is similar to UWP app development. The idea is to use asynchronous C++11 threads to generate content and modify content that is displayed in the MFC UI. The main change I want to make is to use