I define a pointer to a managed function with:
typedef void(__stdcall* CounterCallback)(int count);
then I\'ll define a c++ method: