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