   [SlimDX] DCRenderTarget.BindDeviceContext() How to use ??
  Hi all,I am trying to reproduce a DirectX C++ sample which use DCRenderTarget with .NET SlimDX. But I have a problem with the usage of a function, here is my code :  // Get the D3D11 back-buffer and his description  D3D11.Texture2D backBuffer = D3D11.Texture2D.FromSwapChain<D3D11.Texture2D>(swapChain, 0);  D3D11.Texture2DDescription backBufferDesc = backBuffer.Description;  // Create the shared texture to draw D2D content to  D3D11.Texture2DDescription textureDesc = new D3D11.Texture2DDescription()  { Width = backBufferDesc.Width, Height = backBufferDesc.Height, MipLevels = 1, ArraySize = 1, Format = SlimDX.DXGI.Format.B8G8R8A8_UNorm, SampleDescription = new SlimDX.DXGI.SampleDescription(1, 0), Usage = SlimDX.Direct3D11.ResourceUsage.Default, BindFlags = SlimDX.Direct3D11.BindFlags.ShaderResource | SlimDX.Direct3D11.BindFlags.RenderTarget, OptionFlags = SlimDX.Direct3D11.ResourceOptionFlags.GdiCompatible  };  D3D11.Texture2D texture11 = new D3D11.Texture2D(d3d11Device, textureDesc);  // Get DXGI surface from texture  DXGI.Surface surface = texture11.AsSurface();  // Create D2D factory  D2D.Factory D2DFactory = new D2D.Factory(D2D.FactoryType.SingleThreaded);  // Create D2D DC render target  D2D.DeviceContextRenderTarget DCRenderTarget = new D2D.DeviceContextRenderTarget(D2DFactory, new SlimDX.Direct2D.RenderTargetProperties()  { Type = SlimDX.Direct2D.RenderTargetType.Hardware, PixelFormat = new D2D.PixelFormat(DXGI.Format.B8G8R8A8_UNorm, SlimDX.Direct2D.AlphaMode.Premultiplied)  });  // Create a solid color brush to draw something with  D2D.SolidColorBrush brush = new D2D.SolidColorBrush(DCRenderTarget, new Color4(Color.White));  // Main loop  MessagePump.Run(myForm, () =>  { // Bind the DC render target to the HDC result = DCRenderTarget.BindDeviceContext(surface.ComPointer, new Rectangle(0, 0, backBufferDesc.Width, backBufferDesc.Height)); // HERE IS MY PROBLEM  });My problem come from the DeviceContextRenderTarget.BindDeviceContext() function, the first parameter is waiting for an IntPtr of the device context. In C++ the parameter passed is " Surface->GetHDC(...); ". In SlimDX I don't see the GetDC function for a DXGISurface so I try to pass de ComPointer (IntPtr) but it doesn't work.Someone can help me with this function ? There is not a single sample over the web ...Thank you very much.   
  Nobody can help me out ?It seem that my problem is mainly due to the Surface, because even create a simple RenderTarget with the surface is failing.I tryed a very simple case :1. Create a D3D11 device and swapchain.2. Create a DXGI Surface from the swapchain.3. Create a D2D RenderTarget with the RenderTarget.FromDXGI(D2DFactory, Surface, RenderTargetProperties) and it fail here. Again with a E_INTERFACE error.Anyone here has already simply create a Direct2D RenderTarget from a DXGI Surface using SlimDX ??   