Thursday, February 11, 2016

Executable file inside an executable file in Dev C++



Hi Guys!
In the windows operating system. There might be times where we need to call other executable in our own program. This works well probably on the first time. But when the executable file being called is renamed or path has been change.....BOOM! that's when the problem comes. You need to change your program code then point to the new path or filename of the executable.

The solution can be........what if we can add the executable being call together with our program code so that when we need to call the executable just ripped its code from its location on our program code, saved it to a temporary folder then run it from there. This eliminate entirely the problem on rename and change directory. ................Well, This is basically what I will discuss in this post on how to add a .exe resource on own program. In here, I will be using the free Dev-C++. The version I'm using is still the 4.9.9.2 which is I think 2011 when this was released.