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. Threading

Threading

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
89 Posts 23 Posters 0 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.
  • S sujithkumarsl

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace testApp { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Thread newThread; private void btnOK_Click(object sender, EventArgs e) { newThread = new Thread(new ThreadStart(Display)); newThread.IsBackground = true; newThread.Start(); } private void Display() { MessageBox.Show("threadStarted"); } private void btnCancel_Click(object sender, EventArgs e) { newThread.Abort(); MessageBox.Show("threadstopped"); } } }

    My small attempt...

    T Offline
    T Offline
    ThatsAlok
    wrote on last edited by
    #78

    dude it's unmanaged forum!

    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

    cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

    1 Reply Last reply
    0
    • H Hamid Taebi

      Its simple if you know managed programming you can convert it ;)


      WhiteSky


      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #79

      WhiteSky wrote:

      if you know managed programming you can convert it ;)

      if not!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

      H 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        Steve, please stop arguing with him. Any person with a civic sense must have understood that what he did was a mistake by now. Ironically, he keeps arguing.

        "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #80

        brahmma wrote:

        Ironically, he keeps arguing.

        thats democracy man!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • R Rajesh R Subramanian

          Joergen Sigvardsson wrote:

          Your mental prowess is... overwhelming. I humbly bow before you.

          :laugh: That is classic.

          Shog on learning VB6: Ah, that would have been VB6. Kicked my ass anyway.
          So easy to learn, just like falling down a flight of stairs...

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #81

          brahmma wrote:

          :laugh: That is classic

          humm... i missed out complete thread.. it's seems very interesting :)

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

          1 Reply Last reply
          0
          • R Rajesh R Subramanian

            It is better not to give any advice than giving bad advice. Is it too difficult for you to understand this?

            "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #82

            brahmma wrote:

            t is better not to give any advice than giving bad advice. Is it too difficult for you to understand this?

            thats should be motto of every one who posting help here!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              I've been with this board for quite a while. I am active on the C++ forum and I help people, whenever I can. I do not mislead them. With your message count and the content of your messages, anyone who reads this message will be able to tell that you are nothing more than a stupid little troll. I stop talking to you here. Now, we have another Kyle. You can continue with your absurd little rant.

              "The difficulty lies, not in the new ideas, but in escaping from the old ones." -- John Maynard Keyes, 1936

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #83

              brahmma wrote:

              I am active on the C++ forum and I help people, whenever I can

              humm... i don't expect this from you!

              brahmma wrote:

              anyone who reads this message will be able to tell that you are nothing more than a stupid little troll.

              good.. but please re frame yourself using abusive language in public!.. it will be beneficial in long run!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

              R 1 Reply Last reply
              0
              • S sujithkumarsl

                sorry. actually i thought its the c# forum

                My small attempt...

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #84

                sujithkumarsl wrote:

                actually i thought its the c# forum

                no problem due. many time i posted unmanaged answer in managed forum!

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                1 Reply Last reply
                0
                • T ThatsAlok

                  WhiteSky wrote:

                  if you know managed programming you can convert it ;)

                  if not!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #85

                  Its simple if not you can try to learn it ;P


                  WhiteSky


                  T 1 Reply Last reply
                  0
                  • H Hamid Taebi

                    Its simple if not you can try to learn it ;P


                    WhiteSky


                    T Offline
                    T Offline
                    ThatsAlok
                    wrote on last edited by
                    #86

                    WhiteSky wrote:

                    Its simple if not you can try to learn it

                    he he

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                    H 1 Reply Last reply
                    0
                    • T ThatsAlok

                      WhiteSky wrote:

                      Its simple if not you can try to learn it

                      he he

                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #87

                      Of course I know you are a good programer and its not difficult for you:)


                      WhiteSky


                      T 1 Reply Last reply
                      0
                      • H Hamid Taebi

                        Of course I know you are a good programer and its not difficult for you:)


                        WhiteSky


                        T Offline
                        T Offline
                        ThatsAlok
                        wrote on last edited by
                        #88

                        WhiteSky wrote:

                        Of course I know you are a good programer and its not difficult for you

                        my Project lead don't think so [:)];P.. and i am making him to believe that :)

                        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                        1 Reply Last reply
                        0
                        • T ThatsAlok

                          brahmma wrote:

                          I am active on the C++ forum and I help people, whenever I can

                          humm... i don't expect this from you!

                          brahmma wrote:

                          anyone who reads this message will be able to tell that you are nothing more than a stupid little troll.

                          good.. but please re frame yourself using abusive language in public!.. it will be beneficial in long run!

                          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                          R Offline
                          R Offline
                          Rajesh R Subramanian
                          wrote on last edited by
                          #89

                          ThatsAlok wrote:

                          humm... i don't expect this from you!

                          I don't understand this. What don't you expect from me? Being active on the C++ forum and helping peoople whenever I can?

                          ThatsAlok wrote:

                          good.. but please re frame yourself using abusive language in public!.. it will be beneficial in long run!

                          Yes. I don't do such a thing, generally. But you did not have a chance to read his posts. Additionally, I made an apology, which you've apparently missed. :) Link[^]


                          Nobody can give you wiser advice than yourself. - Cicero

                          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