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. Managed C++/CLI
  4. Passing any string to Thread Process

Passing any string to Thread Process

Scheduled Pinned Locked Moved Managed C++/CLI
help
5 Posts 4 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.
  • D Offline
    D Offline
    darkcloud 42o
    wrote on last edited by
    #1

    //hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.

    L M 2 Replies Last reply
    0
    • D darkcloud 42o

      //hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      darkcloud.42o wrote:

      Please Help.

      Help has arrived[^]

      led mike

      M G 2 Replies Last reply
      0
      • D darkcloud 42o

        //hi the type of threading im using is.. #include #include using namespace std; int shutdown=0; int main(){ unsigned sid; (HANDLE)_beginthreadex( NULL, 0, sendrecv, NULL, 0, &sid); while(1){ Sleep(1000); if(shutdown==1){ break; } } } unsigned __stdcall threadprocess(void *params){ return 0; } //What i need to do is pass a string from the main() to the threadprocess.. Please Help.

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        I know you meant to post this question here[^]

        "If you can dodge a wrench, you can dodge a ball."

        1 Reply Last reply
        0
        • L led mike

          darkcloud.42o wrote:

          Please Help.

          Help has arrived[^]

          led mike

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          :-D

          "If you can dodge a wrench, you can dodge a ball."

          1 Reply Last reply
          0
          • L led mike

            darkcloud.42o wrote:

            Please Help.

            Help has arrived[^]

            led mike

            G Offline
            G Offline
            George L Jackson
            wrote on last edited by
            #5

            :-D Good reply!

            "We make a living by what we get, we make a life by what we give." --Winston Churchill

            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