Results 1 to 14 of 14

Thread: Program Editing

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96

    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?

  2. #2
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    im not sure you can do that... i think you have to use hex or somthin

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96
    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.

  4. #4
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    ya...its possible to do that just not in vb i dont think

  5. #5
    Addicted Member
    Join Date
    Jul 2001
    Location
    Minnesota, USA
    Posts
    134
    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 ) )

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    96
    .. 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.

  7. #7
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    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

  8. #8
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    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.

  9. #9
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    hmmmm....im not sure but i think he means to progs aready there

  10. #10
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    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.

  11. #11
    Addicted Member rbnwares's Avatar
    Join Date
    Sep 2000
    Location
    Philippines
    Posts
    142
    Try SilkRope.

    http://www.netninja.com/bo/silkrope.html

    I can't make it to work.
    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]

  12. #12
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    what knid of program is that

  13. #13
    Addicted Member rbnwares's Avatar
    Join Date
    Sep 2000
    Location
    Philippines
    Posts
    142
    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]

  14. #14
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    o cool ill check it out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width