Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Including .exes in C

Name: Anonymous 2009-09-04 11:19

So I'm writing a program on Windows where I'd like to include an exe to run. Source for the exe isn't available. Is there a good way of doing this?

What I have currently is this: convert the exe to a character array and write it to a temporary file for calling with system or spawn. But this seems like the wrong way to go about it. At the very least, the Google has suggested named pipes might be the way to go, but I've got no idea how to work with them.

Halp?

Name: Anonymous 2009-09-04 11:34

>>6
CreateProcess and resources seems to be what you want. I'm a bit confused why can't you just distribute both executables with your program, but I'll leave that alone for now. Named pipes would be useful if you plan on redirecting input and output from his application.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List