How to check if a .exe file runs in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xillez
    New Member
    • Jul 2013
    • 93

    How to check if a .exe file runs in c++

    Hey, found out that I had to split my project in two programs (console projects).

    I wanna make sure in the main program that the logger runs and if I can, have the main program do commands within the console.

    Now how can I do this? is it a header that I have to include? is it a built in feature of c++?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    What operating system is this on?

    Comment

    • Xillez
      New Member
      • Jul 2013
      • 93

      #3
      I have windows 7... (this is here for the 20 character limit, don't worry about this XD)

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        Do you know how to set up multithreading on your OS? Or do you really need to spawn a completely different process?

        This looks like a multithreading issue to me.

        Comment

        • donbock
          Recognized Expert Top Contributor
          • Mar 2008
          • 2427

          #5
          Do you know the differences between threads and processes in Windows 7?

          The meaning of these terms can vary from one operating system to another.

          Comment

          • Xillez
            New Member
            • Jul 2013
            • 93

            #6
            Nope, I know what it is, but I don't know how to do it... that's the problem.. but is there are any why to do it in c++?

            Comment

            • weaknessforcats
              Recognized Expert Expert
              • Mar 2007
              • 9214

              #7
              Multithreading has nothing to do with C++. It has to do with these calls to your OS can be written in C++.

              For Windows 7 use the book "Windows via C/C++" by Jeffrey Richter. It contains an entire chapter on how to do multithreading in Windows. It's not that hard to do but it is too much to explain on a discussion thread like this.

              Comment

              • Xillez
                New Member
                • Jul 2013
                • 93

                #8
                nice, ok... I'll get reading then. Thanks once again XD

                Comment

                Working...