locked
Static Members

    Question

  • Okay, I have a native class.  It contains both ref and native data members.  I need these members to be static.  How can I do it?   Here's an example.

    Edit: Code Erased.

    I need the ScreenManager and AudioManager to be static, but I get errors when I try to make the ScreenManager static.  Any help?

    Monday, July 9, 2012 3:52 PM

Answers

  • Can you send me a sample solution demonstrating the class / namespace layout your trying to implement? I'm not locating that exact message.

    DavidLam At Microsoft dot COM.

    Thanks!


    David Lamb

    • Marked as answer by DualOpAmp Friday, July 20, 2012 5:35 PM
    Friday, July 13, 2012 11:39 PM
    Moderator

All replies

  • What error(s) are you currently seeing?


    David Lamb

    Wednesday, July 11, 2012 12:50 AM
    Moderator
  • A member of a non-WinRT class cannot be a handle.
    Friday, July 13, 2012 12:48 PM
  • Can you send me a sample solution demonstrating the class / namespace layout your trying to implement? I'm not locating that exact message.

    DavidLam At Microsoft dot COM.

    Thanks!


    David Lamb

    • Marked as answer by DualOpAmp Friday, July 20, 2012 5:35 PM
    Friday, July 13, 2012 11:39 PM
    Moderator
  • Thanks anyway, but I just converted all the conflicting classes to native types.  I guess, for some reason, I thought that they had to be ref classes.
    Friday, July 20, 2012 5:33 PM