|
|
||
|---|---|---|
| .. | ||
| GMM.vcxproj | ||
| GMM.vcxproj.filters | ||
| PropertySheet.props | ||
| gmm.cpp | ||
| gmm.h | ||
| gmm_result.mat | ||
| kmeans.cpp | ||
| kmeans.h | ||
| main.cpp | ||
| packages.config | ||
| readme.md | ||
readme.md
======================================================================== C++/WinRT GMM Project Overview
This project demonstrates how to get started consuming Windows Runtime classes directly from standard C++, using platform projection headers generated from Windows SDK metadata files.
Steps to generate and consume SDK platform projection:
- Build project initially to generate platform projection headers into your Generated Files folder.
- Include a projection namespace header in your pch.h, such as <winrt/Windows.Foundation.h>.
- Consume winrt namespace and any Windows Runtime namespaces, such as winrt::Windows::Foundation, from source code.
- Initialize apartment via init_apartment() and consume winrt classes.
Steps to generate and consume a projection from third party metadata:
- Add a WinMD reference by right-clicking the References project node and selecting "Add Reference...". In the Add References dialog, browse to the component WinMD you want to consume and add it.
- Build the project once to generate projection headers for the referenced WinMD file under the "Generated Files" subfolder.
- As above, include projection headers in pch or source code to consume projected Windows Runtime classes.