You can't transfer visual C++ code directly, because C++ compilers for PIC (MPLAB doesn't compile C or C++ code, it use another like CCS, IAR, C18) are different of visual C++ compiler, you can use some parts, but others the PIC compiler will give you errors. You have only make few adjusts ... I think PIC support EAS, but are you sure that PIC has sufficient memory(FLASH and RAM) do do this work? For reduce compatibility problems use strict ISO/ANSI conformance options to write code ..... but a suggestion, prefer C compilers because PIC arquiteture doesn't work well with pointers, and C++ classes generally have many usage of this resource .... and code grow up because of many code lines in assembler to do this.
leomecma