How to create a C++ WinRT Component DLL project RRS feed

  • Question

  • The document here http://msdn.microsoft.com/en-us/library/windows/apps/hh441569%28v=VS.85%29.aspx suggest that to create a C++ WinRT Component DLL project you "Choose Visual C++ > C++ WinRT Component DLL project." However my Visual Studio 11 does not seem to have "C++ WinRT Component DLL project" as one of the options under Visual C++. In fact there is no mention of WinRT anywhere. Is there some other magic setup/configuration needed to make these options appear?
    Tuesday, September 20, 2011 11:02 PM


All replies

  • I have realized this may be because I have only installed Visual Studio 11 on a Window 7 box rather than doing the full Windows 8 + Visual Studio 11 install.

    If this is the case I'm wondering whether you will ever be able to do this on Window 7. My main aim here is to allow C# to call some C++ code. At present I simply use a C++/CLI wrapper for this but I was interested in the possibility of doing this via C++/CX.  

    Tuesday, September 20, 2011 11:12 PM
  • David, metro style apps can only be developed on Windows 8. Please see this other thread http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/0155ffb8-b526-46f3-9286-3befd5563b32.



    Navit Saxena

    Wednesday, September 21, 2011 12:28 AM
  • WinRT is a native part of the Windows 8 OS. It's a certainty that it will not be back-ported to Windows 7 or Vista. That's the core thing to keep in mind here.


    That said, it'd be great if ABI and thus C++/CX got back-ported to older OSes. That'd make COM consumption easier than it ever used to be.

    • Marked as answer by Jie Bao Monday, September 26, 2011 5:03 PM
    Wednesday, September 21, 2011 1:58 AM