Use these libs in an Metro App: #include <winsock2.h> ... #include <boost/asio.hpp>
-
Thursday, March 08, 2012 11:23 AM
Hi,
is there a way to use these libs in Metro apps?
I need to port an win32 Desktop app to a Metro app. It would be much easier when porting to be able to use these libs and switch later to Windows Runtime sockets.
All Replies
-
Friday, March 09, 2012 8:39 AMModerator
Hello,
I would suggest you to use Windows.Networking namespace instead of Windows API in Metro App project.
You can follow these sample codes:
StreamSocket sample
http://code.msdn.microsoft.com/windowsapps/StreamSocket-Sample-8c573931Network information sample
http://code.msdn.microsoft.com/windowsapps/Network-Information-Sample-63aaa201Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by DavidLambMicrosoft Employee, Moderator Tuesday, March 13, 2012 3:38 PM
- Marked As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Thursday, March 15, 2012 9:36 AM
-
Saturday, March 10, 2012 12:58 AMModerator
The APIs you can use or any libraries you leverage need to use the APIs listed in the API reference for Metro style apps. The list Alternatives to Windows APIs in Metro style apps may be useful to you as well.
Regarding the boost library, I find I'm referencing this talk a lot today. There is some discussion and a demo about using such libraries.
Being pragmatic by leveraging existing code in Metro style apps
PLAT-877T
Speakers: Jason OlsonDavid Lamb
- Proposed As Answer by DavidLambMicrosoft Employee, Moderator Tuesday, March 13, 2012 3:38 PM
- Marked As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Thursday, March 15, 2012 9:36 AM


