An IDE generally consists of an editor, compiler, debugging tools, etc. You seem to need just the editor part. What you can do is, use a GUI famework for making the editor. Then, invoke the compiler(In case of VC++, i think it is cl.exe).
So, invoke it as <compiler> <options> <file_to_compile>
For the GUI framework, there are many ways you can do. For eg: gtk