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