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. Other Discussions
  3. The Weird and The Wonderful
  4. 3 years back I wrote like this :)

3 years back I wrote like this :)

Scheduled Pinned Locked Moved The Weird and The Wonderful
career
9 Posts 9 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.
  • _ Offline
    _ Offline
    _anil_
    wrote on last edited by
    #1

    During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

    Regards Anil

    S C B R C 7 Replies Last reply
    0
    • _ _anil_

      During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

      Regards Anil

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      :laugh::laugh::laugh:

      Regards, Sylvester G sylvester_g_m@yahoo.com

      1 Reply Last reply
      0
      • _ _anil_

        During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

        Regards Anil

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #3

        Well, you made the lazy CPU working... :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        V 1 Reply Last reply
        0
        • _ _anil_

          During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

          Regards Anil

          B Offline
          B Offline
          BadKarma
          wrote on last edited by
          #4

          No worries, one Sleep could save you :laugh:

          codito ergo sum

          1 Reply Last reply
          0
          • _ _anil_

            During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

            Regards Anil

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #5

            I think it already happened to everyone to rewrite existing code or API just because one did not know that the code already existed. In a different manner, as I was a student, it took me one week to transform serial signals (-12/+12 Volts) into a (0/+5V) signals using all kind of electronic beings (resistance, amplifier, ...) just to find out after that that someone had already thought about the problem and that we could buy RS232 integrated circuits everywhere. :-O

            Constantly "Saving the day" should be taken as a sign of organizational dysfunction rather than individual skill - Ryan Roberts[^]

            1 Reply Last reply
            0
            • _ _anil_

              During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

              Regards Anil

              C Offline
              C Offline
              Collin Parker
              wrote on last edited by
              #6

              Yeah, I'd probably cringe if I had to look at some of the "code"(I use the term loosly) that I wrote right out of college.

              1 Reply Last reply
              0
              • C CPallini

                Well, you made the lazy CPU working... :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                :)

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                1 Reply Last reply
                0
                • _ _anil_

                  During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

                  Regards Anil

                  D Offline
                  D Offline
                  DynV
                  wrote on last edited by
                  #8

                  This doesn't register with me, I learned threads with Java ... Maybe comment and point out mistakes ?

                  Je vous salue du Québec !

                  1 Reply Last reply
                  0
                  • _ _anil_

                    During starting my career as VC programmer and my first multithread program I used the while loop and global variable to wait for thread to finish.:laugh: I always recall it when ever I write WaitForSingleObject after that. :-D DWORD dwStart = GetTickCount(); while( m_sManagerNode.IsEmpty() == FALSE ){ if( GetTickCount() - dwStart >= 60000 ){ bReturn = FALSE; break; } } return( TRUE );

                    Regards Anil

                    S Offline
                    S Offline
                    Sathesh Sakthivel
                    wrote on last edited by
                    #9

                    :laugh::laugh::laugh:

                    Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

                    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