I have two projects X and Y. X is CodeEditor with Command Prompt and Y is Mingw Compiler. I want the result of C and C++ program (that are written on CodeEditor) will be shown on Command Prompt. Basically I want my CodeEditor will invoke C or C++ compiler (mingw) and output of the program(C or C++) will shown at Command Prompt. So I have two Queries:
1. How CodeEditor will invoke Mingw?
2. How to link CodeEditor with Command Prompt?

Any ideas to understand these two invoking and linking queries?