Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Jiqi1.cpp
Package: 心跳检测.rar [view]
Upload User: dtengfei
Upload Date: 2013-01-16
Package Size: 393k
Code Size: 1k
Category:
hospital software system
Development Platform:
Visual C++
- // Jiqi1.cpp : implementation file
- //
- #include "stdafx.h"
- #include "心跳检测.h"
- #include "Jiqi1.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CJiqi
- IMPLEMENT_DYNCREATE(CJiqi, CWinThread)
- CJiqi::CJiqi()
- {
- }
- CJiqi::~CJiqi()
- {
- }
- BOOL CJiqi::InitInstance()
- {
- // TODO: perform and per-thread initialization here
- return TRUE;
- }
- int CJiqi::ExitInstance()
- {
- // TODO: perform any per-thread cleanup here
- return CWinThread::ExitInstance();
- }
- BEGIN_MESSAGE_MAP(CJiqi, CWinThread)
- //{{AFX_MSG_MAP(CJiqi)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- ON_THREAD_MESSAGE(WM_CELIANG,Work)
- ON_THREAD_MESSAGE(WM_THREADEND,QuitPrg)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CJiqi message handlers
- void CJiqi::Work(LPARAM lParam)
- {
- struct ThreadPoint *TP;
- TP=(struct ThreadPoint *)lParam;
- CControl m_Dlg;
- int i;
- for(i=0;i<=TP->WholeNumber;i++)
- {
- if(TP->runing)
- {
- TP->data[i]=m_Dlg.Collectdata();
- TP->PointNumber=i;
- ::PostThreadMessage(m_MainThreadID,WM_REFRESH,NULL,NULL);
- Sleep(50);
- }
- else break;
- }
- TP->runing=FALSE;
- }
- void CJiqi::QuitPrg()
- {
- AfxEndThread(0);
- }