Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

When creating C++ dll, Select Windows Desktop or Windows Universal

order88order88
edited November 2018 in Questions And Answers

I want to use c++ dll for Hololens.
I created a simple dll(Windows Desktop) ran it on Unity editor every work fine.
But after I ran it on the device, The dll is not loaded. (I check it with https://stackoverflow.com/questions/2292578/check-if-a-dll-is-present-in-the-system)
My dll code is

include "stdafx.h"

extern "C"
{
__declspec(dllexport) int sub(int a, int b)
{
return a - b;
}
}

Solved https://docs.microsoft.com/en-ca/cpp/porting/how-to-use-existing-cpp-code-in-a-universal-windows-platform-app?view=vs-2017

Sign In or Register to comment.