Ok, so i want to like put another program that's written in another language into my c++ program, like it will be two programs but i will only look like one, is that possible? Thanks in advance.
Not really. If you can compile it in the other language, you can run the file through C++ but honestly this is just a dumb question, go learn more c++ and make the other program in c++.
~lilneo
Originally Posted by 258456
Ok, so i want to like put another program that's written in another language into my c++ program, like it will be two programs but i will only look like one, is that possible? Thanks in advance.
Merge the 2 by copying source /
Originally Posted by rtemis
Merge the 2 by copying source /
One is C++ one isn't... You can't just merge two source codes that aren't the same language.
Originally Posted by lilneo
One is C++ one isn't... You can't just merge two source codes that aren't the same language.
I didn't read so well then
Embed one of the applications in the other's resources, then extract it, save it to a file, and run it.
lol guys, i know i can't mix the source codes, i know c++, well thourough knowledge of basics and mostly win api, i was just wondering if there was a way to like link them together so that if i start my c++ program the other will also start, i just wanted to join them, but i know i can still do it while it's just two separate programs, i was just wondering.
Originally Posted by 258456
lol guys, i know i can't mix the source codes, i know c++, well thourough knowledge of basics and mostly win api, i was just wondering if there was a way to like link them together so that if i start my c++ program the other will also start, i just wanted to join them, but i know i can still do it while it's just two separate programs, i was just wondering.
What mmbob said. U'll need the real Visual Studios (not express) that or you can use Resource Hacker, to manually embed the binary data for the other language in your C++ program. Search the forum, because I think I wrote a tutorial on it. If not u can find all the stuff on Google like I did, but if u can find my post it might be easier. The easiest way is always just to pirate a cracked Visual Studios, but that's a personal choice that I neither condone or condemn.
and instead of writing to disk you should figure out how to spawn it without writing it to disk
Originally Posted by Hell_Demon
and instead of writing to disk you should figure out how to spawn it without writing it to disk
There are methods of doing this.
It requires you create a process in a suspended state, and then clear & recreate the memory sections. Then setup the main thread and it's registers, and load necessary libraries. This was considered a security threat by Microsoft and I don't believe it is possible in Windows Vista+ anymore.
It's safer to write to disk and remotely execute.
Originally Posted by why06
What mmbob said. U'll need the real Visual Studios (not express) that or you can use Resource Hacker, to manually embed the binary data for the other language in your C++ program. Search the forum, because I think I wrote a tutorial on it. If not u can find all the stuff on Google like I did, but if u can find my post it might be easier. The easiest way is always just to pirate a cracked Visual Studios, but that's a personal choice that I neither condone or condemn.
Or save a byte / hex array of the program into yours, and then just write it onto disk?
Originally Posted by radnomguywfq3
There are methods of doing this.
It requires you create a process in a suspended state, and then clear & recreate the memory sections. Then setup the main thread and it's registers, and load necessary libraries. This was considered a security threat by Microsoft and I don't believe it is possible in Windows Vista+ anymore.