The process is the same as compilation for x86. You'll need only to "hack" visual studio 2012 as was explained on the stackoverflow link posted a bit earlier, and add missing import libraries made by this tool:
http://xdaforums.com/showthread.php?t=2093899
You'll need a full (not starter) VS2012 package to make C++ programs.
For the remote debugging to work - you'll need to install a visual studio ARM debugger package on the device. Start reading from here:
http://msdn.microsoft.com/en-us/library/vstudio/hh781607.aspx - the page contains a link to arm redistributable. Screenshots are for metro apps, debuggind desktop apps is similar.
For the compiled desktop apps to be debugged on RT with the full source code information - you'll need to edit project settings, change the PDB file format from "PDB .. for edit and continue" to "Program Database /Zi" in "C/C++" / "debug information format". You'll need to play with the project deployment, I had some problems, don't remember exactly which. I did it simplier - shared a "debug" folder from a development PC to RT over a network, mapped it as a Z: drive to RT device, and in debugger setting specified a Z:\Debug\my_prog.exe as a program to launch on a remote side.