[ create a new paste ] login | about

Link: http://codepad.org/HsORebrk    [ raw code | fork ]

C++, pasted on Sep 30:
#pragma once
#include "Delegate.h"
#include <map>
struct ThreadParaStruct
{
	Delegate<void, CString>	fp_fun;

	ThreadParaStruct(Delegate<void, CString> fp_obj) : fp_fun(fp_obj)
	{}

};

struct ThreadParaStruct2
{
	std::map<int, CString> testmap;
	
};

// CNewThread

class CNewThread : public CWinThread
{
	DECLARE_DYNCREATE(CNewThread)

public:
	CNewThread();           // 動態建立所使用的保護建構函式
	CNewThread(ThreadParaStruct para_struct);
	virtual ~CNewThread();

public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();

protected:
	DECLARE_MESSAGE_MAP()

	ThreadParaStruct thread_para;
};


Create a new paste based on this one


Comments: