{I+=codeWee;}
[C++] Callback - Function Pointer
void (*pOnCallback)(int, int);

void SetCallback(void* pCallbackFunc)
{
	pOnCallback = (void(__cdecl *)(int, int))pCallbackFunc;
}


int main()
{
	SetCallback(OnCallback);

	pOnCallback(1,2);
}


void OnCallback(int data1, int data2)
{
	//...
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.