Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. purpose of parameter value of -1 ?

purpose of parameter value of -1 ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 4 Posters 38 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Inappropriate post - voluntary removed

    K Mircea NeacsuM CPalliniC 3 Replies Last reply
    0
    • L Lost User

      Inappropriate post - voluntary removed

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      Not knowing what type of object process is, it's impossible to say, with any accuracy. However, since it looks like it might be a QProcess, so once again, this isn't a C++ question, but a QT question. Maybe if you took the time to look at the documentation when you run into an issue, you might be able to resolve your questions in a timely manner ... [QProcess Class | Qt Core 6.6.1](https://doc.qt.io/qt-6/qprocess.html#waitForStarted:~:text=interface to freeze.-,If msecs is -1%2C this function will not time out.,-Note%3A On)

      "A little song, a little dance, a little seltzer down your pants" Chuckles the clown

      1 Reply Last reply
      0
      • L Lost User

        Inappropriate post - voluntary removed

        Mircea NeacsuM Offline
        Mircea NeacsuM Offline
        Mircea Neacsu
        wrote on last edited by
        #3

        Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what QProcess object decided to do in the waitForStarted function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:

        Quote:

        If msecs is -1, this function will not time out.

        3. Why you keep asking in a slightly annoying tone? Makes you feel better?

        Mircea

        L 2 Replies Last reply
        0
        • Mircea NeacsuM Mircea Neacsu

          Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what QProcess object decided to do in the waitForStarted function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:

          Quote:

          If msecs is -1, this function will not time out.

          3. Why you keep asking in a slightly annoying tone? Makes you feel better?

          Mircea

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Thank you for answering my question.

          1 Reply Last reply
          0
          • Mircea NeacsuM Mircea Neacsu

            Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what QProcess object decided to do in the waitForStarted function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:

            Quote:

            If msecs is -1, this function will not time out.

            3. Why you keep asking in a slightly annoying tone? Makes you feel better?

            Mircea

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Mircea Neacsu wrote:

            Why you keep asking in a slightly annoying tone? Makes you feel better?

            He has always* behaved in this manner, even once complaining to Chris when he was asked to put his code between <pre> tags. He was thrown off the site last year for abuse, but has managed to more or less behave up to now. Quite why he continues with this code, given his level of understanding, remains a mystery. *has had different accounts, or changed the name more than once.

            1 Reply Last reply
            0
            • L Lost User

              Inappropriate post - voluntary removed

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              Reading the QT documentation could save you some pain. Just saying.

              "In testa che avete, Signor di Ceprano?" -- Rigoletto

              In testa che avete, signor di Ceprano?

              L 1 Reply Last reply
              0
              • CPalliniC CPallini

                Reading the QT documentation could save you some pain. Just saying.

                "In testa che avete, Signor di Ceprano?" -- Rigoletto

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                And save us some as well. :laugh:

                CPalliniC 1 Reply Last reply
                0
                • L Lost User

                  And save us some as well. :laugh:

                  CPalliniC Offline
                  CPalliniC Offline
                  CPallini
                  wrote on last edited by
                  #8

                  Amen! :-D

                  "In testa che avete, Signor di Ceprano?" -- Rigoletto

                  In testa che avete, signor di Ceprano?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups