|
-
Oct 7th, 2001, 08:32 PM
#1
Thread Starter
Lively Member
Program Editing
How would you go about putting 2 programs in vb together so that when you run one program it will run the other?
-
Oct 7th, 2001, 08:38 PM
#2
Frenzied Member
im not sure you can do that... i think you have to use hex or somthin
-
Oct 7th, 2001, 08:44 PM
#3
Thread Starter
Lively Member
I was just wondering, cause I was messing around with the sub7 (a trojin) server files and I ran across the execute/extract function it had with it. So i was thinkin to myself it would be could if you made a program that would merg 2 together and run them both at the same time.
-
Oct 7th, 2001, 08:47 PM
#4
Frenzied Member
ya...its possible to do that just not in vb i dont think
-
Oct 7th, 2001, 09:48 PM
#5
Addicted Member
use the Shell() function to execute the "sister" program, then to pass certain data to it, use SendKeys().
The answer is 42. Sadly, you can't typecast the "answer" data type to the "question" data type.
Code:
Take.Me( To( Your.Leader ) )
-
Oct 7th, 2001, 10:37 PM
#6
Thread Starter
Lively Member
.. I know how to do that. but what im talkin about is taking 2 files, and then combinding them into one. Say i have Msword and msworks I would run the program on them and combind them to make one exe that contains the code of both programs and runs both at the same time.
-
Oct 9th, 2001, 04:29 PM
#7
Frenzied Member
ya...ic what you mean like say you had mspaint and msworks and when you opend mspaint the other 1 would pop up 2? pm me
-
Oct 9th, 2001, 05:14 PM
#8
Frenzied Member
I've never tried this before but here is an idea. Lets say you have Program A and Program B. After you compile the two, from a third program, you would open program A for binary write and program B for binary read. You would then append the all of program B to the end of program A. Then you would have one file with two programs. You would note the exact size of program A and B in bytes. When program A starts it would write the apended program B to a new file and then shell to it. This assumes that program A would run fine and not be affected by the extra data (program B) appended to the end of its binary executable. Of course, this would take several compiles of program A because you would have to account to the code it takes to extract program B and shell to it.
I have no idea if this would work.
Greg
Free VB Add-In - The Reference Librarian
Click Here for screen shot and download link.
-
Oct 9th, 2001, 06:17 PM
#9
Frenzied Member
hmmmm....im not sure but i think he means to progs aready there
-
Oct 9th, 2001, 06:54 PM
#10
Frenzied Member
Originally posted by Motoxpro
hmmmm....im not sure but i think he means to progs aready there
I'm not sure. Below are two quotes I was working from...
How would you go about putting 2 programs in vb together so that when you run one program it will run the other?
So i was thinkin to myself it would be could if you made a program that would merg 2 together and run them both at the same time.
Greg
Free VB Add-In - The Reference Librarian
Click Here for screen shot and download link.
-
Oct 9th, 2001, 07:24 PM
#11
Addicted Member
 Stupidity is better than cure.
VB6 SP5 Enterprise Ed.
C, Pascal, VC++ 6.0
Running Win98 SE and Win2000 Prof. Ed.
Email me at : [email protected]
-
Oct 9th, 2001, 07:47 PM
#12
Frenzied Member
what knid of program is that
-
Oct 9th, 2001, 08:04 PM
#13
Addicted Member
Just like what he needed.
It combines two programs into one. Then, if you run the combined one it both executes the two progs.
I don't know how to use it. I've seen it before then I remember it seems to be what he need.
 Stupidity is better than cure.
VB6 SP5 Enterprise Ed.
C, Pascal, VC++ 6.0
Running Win98 SE and Win2000 Prof. Ed.
Email me at : [email protected]
-
Oct 9th, 2001, 08:33 PM
#14
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|