Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ZeroStage - ThreadExample1.h

ThreadExample1.h

Caricato da:
Scarica il programma completo

  1. #pragma once
  2.  
  3. using namespace System;
  4. using namespace System::ComponentModel;
  5. using namespace System::Collections;
  6. using namespace System::Diagnostics;
  7.  
  8.  
  9. namespace ProgettoStageReal {
  10.  
  11.         public ref class ThreadExample
  12.  {
  13.          System::Windows::Forms::Label^  label2;
  14.  public:
  15.  
  16.         ThreadExample(System::Windows::Forms::Label^  l2)
  17.          {
  18.                  label2=l2;
  19.  
  20.          }
  21.      // The ThreadProc method is called when the thread starts.
  22.      // It loops ten times, writing to the console and yielding
  23.      // the rest of its time slice each time, and then ends.
  24.     void DoWork()
  25.         {
  26.                         //ProgettoStageReal::Form1 ale= data;
  27.            label2->Text="ok";
  28.         }
  29.  };
  30. }