External dependencies and no header include RRS feed

  • Question

  • I'm trying to delve into the joys of DirectX and C++ programming on Windows 8.
    (I'm a DirectX newbie and C++ rusty)

    My first "test / learning project" is a plain / vanilla D3D project (it shows a rotating cube out of the box, when created)

    My first modification is to make it work in XAML, I get my inspiration from the "simple3DGameXaml" sample, at:

    My problem: as I copy paste code from the XAML sample I notice it has members of type D2D interfaces (such as: ID2D1Device)


    I can't see an "#include <d2d1.h>" in the DirectXBase.h or referenced headers... and I can't see d2d1.h in the external dependencies of my project!!

    What kind of witchery is that? no include! How could I make it work in my project too!!??

    Tuesday, September 11, 2012 2:05 PM


  • Found it, this is "precompiled header / pch.h magic"!!!!

    Just edited the "pch.h" file to include the D2D headers.

    • Marked as answer by Lloyd Tuesday, September 11, 2012 2:12 PM
    • Edited by Lloyd Tuesday, September 11, 2012 2:45 PM
    Tuesday, September 11, 2012 2:12 PM

All replies