mounitethread.cpp
来自「这个一个联通短信网关程序.并且在SP已经运行稳定.很有学习价值」· C++ 代码 · 共 49 行
CPP
49 行
// moUniteThread.cpp : implementation file
//
#include "stdafx.h"
#include "moUniteService.h"
#include "moUniteThread.h"
// CmoUniteThread
IMPLEMENT_DYNCREATE(CmoUniteThread, CWinThread)
CmoUniteThread::CmoUniteThread()
{
}
CmoUniteThread::~CmoUniteThread()
{
Destory();
}
void CmoUniteThread::Destory(){
}
BOOL CmoUniteThread::InitInstance()
{
// TODO: perform and per-thread initialization here
BOOL bok=this->m_wndUniteListen.Create();
CString msgbox;
msgbox.Format("listen is %s",bok?"success":"failed");
SocketTraceMO(msgbox);
return TRUE;
}
int CmoUniteThread::ExitInstance()
{
// TODO: perform any per-thread cleanup here
Destory();
return CWinThread::ExitInstance();
}
BEGIN_MESSAGE_MAP(CmoUniteThread, CWinThread)
END_MESSAGE_MAP()
// CmoUniteThread message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?