Closed KingSora closed 7 years ago
You can't create a D2D.GdiInteropRenderTarget gdiTarget = new D2D.GdiInteropRenderTarget(renderTarget.NativePointer);
, you are not supposed to to use native COM pointer directly unless you know which object you are passing.
As specified on the msdn documentation, you need to QueryInterface<GdiInteropRenderTarget>
on the renderTarget directly.
Alright thanks! Its woring now :)
Hello!
I'm getting a
System.AccessViolationException
if I try to call the GetDC() method from aGdiInteropRenderTarget
object.My code:
Can anyone help me with this? I've the current version of SharpDX.
Best regards, Sora