3,038 questions
Someone suggested using the nuget version of C++/WinRT. That fixed at least this issue - though I can't understand why it wasn't using it already, because the project was a project template with the source taken out.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm setting up a UWP DirectX app.
I'm getting the following error in my Application.cpp file on the #include "pch.h" line..
E2998 PCH warning: an unknown error occurred. An IntelliSense PCH file was not generated.
My pch.h file is as follows..
#pragma once
// Use the C++ standard templated min/max
#define NOMINMAX
#include "winrt/Windows.ApplicationModel.h"
#include "winrt/Windows.ApplicationModel.Core.h"
#include "winrt/Windows.ApplicationModel.Activation.h"
Someone suggested using the nuget version of C++/WinRT. That fixed at least this issue - though I can't understand why it wasn't using it already, because the project was a project template with the source taken out.