Answered by:
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?
- Moved by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, July 10, 2012 7:14 PM (From:Building Metro style games with DirectX)
- Edited by DualOpAmp Friday, July 20, 2012 5:34 PM
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 PMModerator
All replies
-
What error(s) are you currently seeing?
David Lamb
Wednesday, July 11, 2012 12:50 AMModerator -
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 PMModerator -
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