I created an OpenGL control in C ++ and want to use it in a WPF application. I successfully did this and it works fine on Vista and XP machines, but when I open my project on a Windows 7 machine, the WPF design window will not be displayed. When I try to run the program, I get an exception:
"It is not possible to create an instance of 'Window1' defined in the assembly 'LabUserInterface, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null'. The exception was caused by the call purpose. Error in the markup file 'Window1. Xaml' Line 1 Position 9."
"LabUserInterface" is the place where my OpenGL stuff lives. I also have this error in a WPF window:
"Type" MS.Internal.Permissions.UserInitiatedNavigationPermission 'in Assembly' PresentationFramework, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 'is not marked as serializable. "
c ++ windows-7 wpf opengl
Paul jones
source share