Example #1
0
int _tmain(int argc, _TCHAR* argv[])
{
	EventDispatcher ed;
	ed.AttachEvent("open", &OpenHandler);
	ed.AttachEvent("open", &OpenHandler2);

	ed.DetachEvent("open", &OpenHandler2);
	ed.AttachEvent("close", &OpenHandler2);

	Event evt("open");
	ed.dispatchEvent(evt);

	system("pause");

	return 0;
}