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.
Options

'Delegate' does not contain a definition for 'CreateDelegate'

I am trying to make an app for the Microsoft HoloLens as Vuforia has a video doing this with Microsoft, but I keep getting error located in the subject line "'Delegate' does not contain a definition for 'CreateDelegate'". I have tried a few switching, but nothing seems to be working. I think the issue is you must build the app for the Microsoft store instead of a standalone app. I could be wrong. Any help would be appreciated.

Thank you,

Alec

Tagged:

Best Answer

Answers

  • Options

    Hi Alec_H
    have you looked at the Getting Started with Unity tutorial?

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options
    Alec_HAlec_H ✭✭

    @Patrick Yes, but using the vufoira add on throws the error above. I also have made apps the build properly.

  • Options

    okay, I'm downloading Vuforia, I'll see if I can figure anything out.

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    I can get it to compile if I wrap the offending block inside of a pragma if block like:

    #if !UNITY_EDITOR
                            Action factorySetMethod = Delegate.CreateDelegate(typeof(Action), this, methodInfo) as Action;
                            if (factorySetMethod != null)
                            {
                                factorySetMethod();
                            }
    #endif
    

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    ugh... spoke too soon. I got the editor to stop complaining by exporting to VS is still failing. Looking again.

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    okay, here's my latest attempt. I need to actually do something with Vuforia to see if it's working.

    #if !UNITY_EDITOR
    (methodInfo.CreateDelegate(typeof(Action), this) as Action)?.Invoke();
    #endif
    

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    I'm not seeing a 32bit UWP dll in the package that I downloaded...

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options
    Alec_HAlec_H ✭✭

    @Patrick Thank you so much for all the support! I am currently waiting for a call from Vuforia. I will let you know if they have a solution, but thank you for all the attempts thus far!

  • Options

    Have you fixed the error?

Sign In or Register to comment.