Open Neil-Wan opened 8 years ago
This is come from my suggestion. Because my project need all of them. My case is using the cx files to call winmd, how about yours?
What problems did you encounter when these are not added? My case is exposing a C style function for Objective-C to call WinRT API like below:
void setupApplication()
{
auto appView = Windows::UI::ViewManagement::ApplicationView::GetForCurrentView();
auto titleBar = appView->TitleBar;
titleBar->BackgroundColor = Colors::White;
}
In the *Add .cpp and use cx/Windows APIs** section of the document, it mentioned the below settings. What's the exact reason for this settings? My project is generated using vsimporter and I added the pch.cpp and pch.h precompiled headers. When adding c++/cx files, I omitted step 3 and 4 and it seems to work fine. Is it safe to omit them since adding that for every file is pretty annoy?