⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threade.cpp

📁 光学仪器的控制系统 用于教学和科研的仪器
💻 CPP
字号:
//---------------------------------------------------------------------------
#pragma hdrstop
#include <vcl.h>


#include "ThreadE.h"
#include "Unit1.h"
#include "pointreport.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
//   Important: Methods and properties of objects in VCL can only be
//   used in a method called using Synchronize, for example:
//
//      Synchronize(UpdateCaption);
//
//   where UpdateCaption could look like:
//
//      void __fastcall ThreadE::UpdateCaption()
//      {
//        Form1->Caption = "Updated in a thread";
//      }
//---------------------------------------------------------------------------
__fastcall ThreadE::ThreadE(bool CreateSuspended)
        : TThread(CreateSuspended)
{
}
//---------------------------------------------------------------------------
void __fastcall ThreadE::Execute()
{
        //---- Place thread code here ----
        if(ExecFuntion!=NULL)
                (*ExecFuntion)();
        //Synchronize(SynExec);
        ExecFuntion=NULL;
        ReturnValue=1;
}
//---------------------------------------------------------------------------
void ThreadE::SetFun(ExecFun fun)
{
 ExecFuntion=fun;
}
//---------------------------------------------------------------------------
void  __fastcall ThreadE::SynExec(void)
{
 
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -