Hi
I actually creating different DLLs, i define OS_WINRT when compiling my library for WinRT, so i can use ifdef/endif to work around the differences, for example i use WinRT namespaces just when building for WinRT, but i prefer to avoid different source files.
#ifdef OS_WINRT
using namespace Windows::Networking::Sockets;
#endif
i suppose the easy wait for me is to use a Macro for check the error code, so i don't need to duplicate code every where. Anyway thanks for take the time to reply