// source\TortThread.cpp : implementation file // #include "stdafx.h" #include "TortThread.h" // TortThread IMPLEMENT_DYNCREATE(TortThread, CWinThread) TortThread::TortThread() { } TortThread::~TortThread() { } BOOL TortThread::InitInstance() { BOOL ret; TortuosityDialog* TortDlg; TortDlg = new TortuosityDialog(); //Check if new succeeded and a valid pointer to a dialog object is //created. if(TortDlg != NULL) { ret = TortDlg->Create(IDD_TORT_DIALOG,TortDlg); if(!ret) //Create failed. AfxMessageBox("Error creating Dialog"); TortDlg->ShowWindow(SW_SHOW); } else AfxMessageBox("Error Creating Dialog Object"); m_pMainWnd = TortDlg; return TRUE; } int TortThread::ExitInstance() { // TODO: perform any per-thread cleanup here return CWinThread::ExitInstance(); } BEGIN_MESSAGE_MAP(TortThread, CWinThread) END_MESSAGE_MAP() // TortThread message handlers