I need help with this program

Pages: 12
I need to know how to use a program the I made in the program that I wrote.
Do you have any ideas?
Please clarify.
Also did you compile and run?
Yes
I set a program as 1 of its resources and it successfully accepted the program as one of its resources but I don't know how to open it with that program now
....whaaaaa? I don't even.. I think I need to brush up on my mind reading..
there is a program built into that program the rote.
Still don't get it.
@ OP: Are you trying to link a ".h\.cpp" or are you trying to run an executable file from the program you are writing?
Yes
That was a multiple choice question, not a yes or no.
But the file is built into the program
How, exactly?
So you're trying to execute an embedded app? You seem like you're in over your head. Where are you reading on how to do this?
I'm just experimenting with it.
This isn't an easy thing to do.

To make sure we're all on the same page, you're not trying to call a program with CreateProcess or anything like that right? You're actually trying to execute a second program coded within your primary one?

You need to launch a seperate thread to do this.
what would that three BE?
With the Win32 API you need to use the "CreateThread(...)" and pass it, among other things, the starting address of your second program. Actually if you read the page and just imagine that your second app is just a function then that part is pretty easy to figure out. Here's the page: http://msdn.microsoft.com/en-us/library/ms682453(VS.85).aspx

The trickey part is that you need your primary program to be loaded into memory the whole time this second thread is executing. If it quits or gets terminated then you'll get an error and you won't know where your second thread left off, unless you had a reporting component.

EDIT: Please note that your second app cannot have a "main()" function. This trips a lot of people up when they first get into this sort of thing.
Last edited on
Can you give me an example ?
The microsoft website didn't tell me. I don't know how to get to work?
can you give me any examples please?
This is from trying to get it to work


502 program h:/beep.Exe
Does that make any sense ?
Pages: 12