CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    7

    Terminating Process

    I have a series of programs that allow the user to jump from one program to the next sharing certain information. Question - After the new process in running, how do I terminate the original process? Thanks for any help!


  2. #2
    Join Date
    Jun 1999
    Posts
    315

    Re: Terminating Process

    you can't terminate a process from outside of the process, but since, as you say, the processes are sharing information, have the new process set a flag that the old process reads. once the old process picks up on this flag, have it use TerminateProcess (i think that's the function)

    miked

  3. #3
    Join Date
    Jun 1999
    Location
    Canada Qu颥c
    Posts
    59

    Re: Terminating Process

    You can write the data that you want to share with the other app in a file on the hard drive
    and close your first app with exit() I think, you can find this info in the Visual C++ online help.

    Serge Gagnon


  4. #4
    Join Date
    Apr 1999
    Posts
    7

    Re: Terminating Process

    Thanks -- it worked as described. Sometimes thing are just too simple.


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

Featured