I have created my own memory management class which basically detects where there are memory leaks in the program. To improve this further i wanted to create my own report hook, so ive constructed the function, just like told on the msdn:
int YourReportHook( int reportType, char *message, int *returnValue );
and ive called the set hook method
_CrtSetReportHook(YoutReportHook)
and when compiling i get this error :
error C2664: '_CrtSetReportHook' : cannot convert parameter 1 from 'int (int,char *,int *)' to 'int (__cdecl *)(int,char *,int *)'
None of the functions with this name in scope match the target type
ive just followed what was on the msdn and this wont compile! any ideas?
Edit/Delete Message
int YourReportHook( int reportType, char *message, int *returnValue );
and ive called the set hook method
_CrtSetReportHook(YoutReportHook)
and when compiling i get this error :
error C2664: '_CrtSetReportHook' : cannot convert parameter 1 from 'int (int,char *,int *)' to 'int (__cdecl *)(int,char *,int *)'
None of the functions with this name in scope match the target type
ive just followed what was on the msdn and this wont compile! any ideas?
Edit/Delete Message