Closed SharinganShuriken closed 6 years ago
SharpDX.DXGI.Surface surface = new SharpDX.DXGI.Surface(this.Handle);
You can't do this. The handle of the window has nothing to do with the COM pointer of a DXGI surface. Please follow the Direct2D documentation to properly use Direct2D with a HWND.
Hello Guys,
i want to draw a text in my form, but everytime i get a Access Violation Exception if i want to create the rendertarget :(
Maybe you can help me and explain me what i do wrong?
` private DeviceContextRenderTarget device; private TextFormat format; private SolidColorBrush brush;