using a #include wouldn't work. All it would do is add all the functions in p1.cpp to the p3 file. #include in a sense is a glorified copy & paste. Also you shouldn't #include .cpp files (use header files), otherwise you're quite likely to run into building and linking errors. Use CreateProcess() like duoas said to start off one program from another