4 ms·
Similar tricks[0] can be used on Win32 applications. Although, I never got Intellisense working in VS if I declare #using <windows.winmd> in C++/Win32 projects
by diego_moita 10y ago
Similar tricks[0] can be used on Win32 applications.
Although, I never got Intellisense working in VS if I declare #using <windows.winmd> in C++/Win32 projects.
A simpler and a lot more interesting alternative (for Win32) is the excellent cppwinrt library[1]
[0] https://software.intel.com/en-us/articles/using-winrt-apis-from-desktop-applications https://software.intel.com/en-us/articles/using-winrt-apis-f...
[1] https://github.com/Microsoft/cppwinrt https://github.com/Microsoft/cppwinrt
- becarefulyo 10y agoThe article has Win32 examples too.
- Longhanks 10y agoUsing C++/CX (as seen by ref new). cppwinrt is ISO C++.
- pjmlp 10y agoC++/WinRT is still WIP. I wouldn't use it for production code until it reaches feature parity with C++/CX.
- becarefulyo 10y agoYou can use Windows Runtime Library (WRL) instead of C++/Cx. https://msdn.microsoft.com/en-us/library/hh438466.aspx https://msdn.microsoft.com/en-us/library/hh438466.aspx