locked
ID2D1DeviceContext::SetTargetSurface

    Question

  • Cannot be found in the d2d1_1.h of 2012 RC

    new ?


    C++ DX11

    Wednesday, July 11, 2012 5:36 AM

Answers

  • I have the d2d1_1.h header file.  but it has not defined "ID2D1DeviceContext::SetTargetSurface"

    (my system is on E:)

    It's not a big problem, I can use createbitmap + setTarget.


    C++ DX11

    • Marked as answer by Raptor K Monday, July 16, 2012 3:47 PM
    Friday, July 13, 2012 12:35 PM

All replies

  • It appears that the documentation is wrong about the location of ID2D1DeviceContext.  The documentation currently says to include d2d1.h but the interface is defined in d2d1_1.h.  I've just verified this on Release Preview SDK.  %WindowsSdkDir%Include\um\d2d1_1.h should be the path.
    Thursday, July 12, 2012 7:07 PM
  • Also can not be found in Release Preview SDK (VS2012RC) "\Program Files (x86)\Windows Kits\8.0\Include\um\d2d1_1.h"


    C++ DX11

    Friday, July 13, 2012 3:52 AM
  • I found that head file. Did you install your SDK on another disk?

     

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, July 13, 2012 7:21 AM
    Moderator
  • I have the d2d1_1.h header file.  but it has not defined "ID2D1DeviceContext::SetTargetSurface"

    (my system is on E:)

    It's not a big problem, I can use createbitmap + setTarget.


    C++ DX11

    • Marked as answer by Raptor K Monday, July 16, 2012 3:47 PM
    Friday, July 13, 2012 12:35 PM