Using new WinRT APIs in Desktop app
-
Thursday, September 13, 2012 3:24 PM
Although MSDN API documentations mentioned that some WinRT APIs are applies to both Windows Store apps & desktop apps but I am not getting these APIs in desktop apps.
How can I shall use WinRT APIs in desktop apps ?
I tried following ways in Visual studio 2012 Ultimate RC.
using namespace Windows::Networking::Sockets; #include <windows.networking.sockets> #using <Windows.Storage.winmd>
I think I have to 'Add Reference' something. So I would like to know what actually have to do and how ? Is there any guidelines available ?
- Edited by Mokarrom Hossain Thursday, September 13, 2012 3:25 PM
- Edited by Mokarrom Hossain Thursday, September 13, 2012 3:26 PM
- Moved by Rob CaplanMicrosoft Employee Friday, September 14, 2012 1:13 AM (From:Building Windows Store apps with C++ )
All Replies
-
Friday, September 14, 2012 11:40 PM
Take a look at the Windows Runtime samples for demonstration of how to call Windows Runtime API from a desktop app.
--Rob
- Marked As Answer by Mokarrom Hossain Sunday, February 10, 2013 1:11 AM


