Answer» Hello everyone... Got a problem, I have 2 programs that are in 2 different languages. They both compile to EXE's, but I would like to MERGE them into a single EXE. They both work upon each other. Each language has its limitations and one will do what the other cant. They both work together in harmony, but its very ugly having 2 exe's. Anyone know of a tool that can be used to wrap these 2 exe's around a candy shell of a single EXE?
I am thinking that the tool would have to place both embedded EXE's into a virtual space to work from so that one can be called over the other, otherwise both would execute at the same time under a single Exe?
Thanks,
DaveThese are your EXE files, right? How large is the source code, anyhow? If it's not very complex, a rewrite of one of them might be in order.
Now, I'm trying to find info on doing this. However, Google's turning up empty. Perhaps one of the other regulars could help shed light on the possibility.A rewrite of both programs into one would eliminate duplicate services (IO mainly). If these are LEGACY languages, you might be able to redesign one program as a subroutine, compile each module separately, and LINK together as a single run unit. Addressability would be maintained by the call instruction. Newer languages use DLL's in much the same way.
The candy wrapper program you mentioned would most likely have to be written (and maintained) by you and would only add ANOTHER layer of complexity.
Good luck. 8-)More detail about these programs is urgently required. What langauages are they written in (I mean, come on!) and did you make the programs yourself? What is the FUNCTION of these programs?Sorry for not specifying languages and use. Here is more info to aid, but I am probably looking at sticking with 2 EXE's if there is no way to wrap them into a single EXE with any already existing tools.
First Program, the main routine written by me in C++ ( MS Visual C++ 6.0 ). Program size 300k in EXE stand alone format.
Second program, created using a Macro Recorder to perform Keyboard, Mouse, and program Launch routines that are preset, prerecorded into an stand alone EXE. ( This gives my duo application its real execution and processing power by running processes by telling Windows what to do. ) The C++ program waits for flags that change as a result of the macro function, to know what to do and when. They both work in harmony to complete the programmed tasks. << I dont know how to control the Windows environment, Mouse and Keyboard functions from Within the C++ program, so this allows for an easy way to do so successfully.>> From C++ I can only use the SYSTEM function to call out for executables within my program. Also not sure what language the Macro is compiled from to decompile and merge my code with it.
Looks like I will just have to get by with 2 EXE's.... It works but doesnt look pretty... :-/What actions are completed by this marco?
|