Click here to Skip to main content
15,887,326 members
Articles / Desktop Programming / ATL

CWorkerThread and IWorkerThreadClient – Looking Further

Rate me:
Please Sign up or sign in to vote.
4.67/5 (8 votes)
28 Jul 2006Ms-PL5 min read 41.5K   518   37  
A tutorial on how to use the ATL7 thread class CWorkerThread and its associated helper classes CRTThreadTraits, IWorkerThreadClient etc. It also presents a generic logging component which can be used in CPU intensive applications.
// CWorkerThreadDemo.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h"		// main symbols


// CCWorkerThreadDemoApp:
// See CWorkerThreadDemo.cpp for the implementation of this class
//

class CCWorkerThreadDemoApp : public CWinApp
{
public:
	CCWorkerThreadDemoApp();

// Overrides
	public:
	virtual BOOL InitInstance();

// Implementation

	DECLARE_MESSAGE_MAP()
};

extern CCWorkerThreadDemoApp theApp;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions