You can use Visual Studio IDE to write Cross-Platform code, but to
compile for a non-windows target you'll need a different toolchain. I'm not
so sure if VS supports applying a different toolchain on a project, doubt
I'd recommend Eclipse CDT (which in turn supports compiling projects
with the M$ toolchain).