locked
What are wrl.h and agile.h

    Question

  • I am learning Direct3D tutorial from Metro style app samples. I see in file pch.h two unfamiliar header files: wrl.h and agile.h. Could someone kindly explain their purpose? Thanks.
    Tuesday, June 19, 2012 5:37 PM

Answers

  • Hello,

    • wrl.h is the header needed to take advantage of the Windows Runtime Library.
    • agile.h is the header needed to use Platform::Agile<T> type in C++/CX. The type enables transparent marshaling of the encapsulated handle across COM apartment boundaries. You only need to use this wrapper type if the underlying handle is not agile itself. For more details see Threading and Marshaling in C++/CX topic in MSDN.

    Hope this helps,
    Marian Luparu
    Visual C++

    • Marked as answer by Leonard Tuesday, June 19, 2012 11:00 PM
    Tuesday, June 19, 2012 7:31 PM

All replies

  • Hello,

    • wrl.h is the header needed to take advantage of the Windows Runtime Library.
    • agile.h is the header needed to use Platform::Agile<T> type in C++/CX. The type enables transparent marshaling of the encapsulated handle across COM apartment boundaries. You only need to use this wrapper type if the underlying handle is not agile itself. For more details see Threading and Marshaling in C++/CX topic in MSDN.

    Hope this helps,
    Marian Luparu
    Visual C++

    • Marked as answer by Leonard Tuesday, June 19, 2012 11:00 PM
    Tuesday, June 19, 2012 7:31 PM
  • Thanks Marian.
    Tuesday, June 19, 2012 11:00 PM