Microsoft OneDrive access from UWP app

I’m writing an app that uses OneDrive to share it’s data but I found the documentation a bit jumbled and out of date so I’ll try to post a clear and simple method for connecting to OneDrive from a Windows 10 Universal App written in C# The first step is to install the Microsoft.OneDriveSDK NuGet package https://github.com/OneDrive/onedrive-sdk-csharp Then create an App that is registered in Windows Dev Center You don’t need…

Sharing enums between C++ and C#

In your C# project  properties on the Build tab, add a conditional compilation symbol called C_SHARP Then create a new file in the C# project to hold the Enums. Here I’ve created an enum called AlarmEnum in the namespace Models in a file called commonAlarms.cs   #if C_SHARP using System; namespace Models { public #endif enum AlarmEnum { //Common AL_NONE = 0, AL_PROCESS_ABORT =1, AL_VACUUM_TRIP = 2, AL_DOOR_OPEN = 3, AL_AIR_FAIL…