_purecall_handler _set_purecall_handler( _purecall_handler function ); 参数function 要在调用纯虚函数时调用的函数。 _purecall_handler 函数必须具有 void 返回类型。返回值之前的 _purecall_handler。 如果之前的处理程序不存在,则返回 NULL。备注如果你希望捕获纯虚函数并以特定方式将它们报告给用户,或出于调试...
在 _purecall 函数在终止之前,它会调用 _purecall_handler 函数(如果已为进程设置了该函数)。 可以安装自己的错误处理程序进行纯虚拟函数调用,以捕获这些调用用于调试和报告目的。 若要使用自己的错误处理程序,请创建一个具有 _purecall_handler 签名的函数,然后使用 _set_purecall_handler 使其成为当前处理程序。
pure call handler 纯粹的调用处理程序
若要使用自己的错误处理程序,请创建具有_purecall_handler签名的函数,然后使用_set_purecall_handler使其成为当前处理程序。 _Purecall函数没有标头声明。_Purecall_handlertypedef 是在 stdlib.h > <中定义的。
The previous _purecall_handler. Returns NULL if there was no previous handler. Use _set_purecall_handler if you want to catch pure virtual functions and report them to the user in a specific way or catch them for debugging purposes.
The previous _purecall_handler. Returns NULL if there was no previous handler. Use _set_purecall_handler if you want to catch pure virtual functions and report them to the user in a specific way or catch them for debugging purposes.
_purecall_handler _set_purecall_handler( _purecall_handler function ); 参数function 要在调用纯虚函数时调用的函数。 _purecall_handler 函数必须具有 void 返回类型。返回值之前的 _purecall_handler。 如果之前的处理程序不存在,则返回 NULL。备注如果你希望捕获纯虚函数并以特定方式将它们报告给用户,或出于调试...
Gets or sets the error handler for a pure virtual function call. Syntax C++Copy typedefvoid(__cdecl* _purecall_handler)(void); _purecall_handler __cdecl _get_purecall_handler(void); _purecall_handler __cdecl _set_purecall_handler( _purecall_handler function ); ...
_set_purecall_handler, _set_purecall_handler_m <stdlib.h> For more compatibility information, seeCompatibilityin the Introduction. Example // _set_purecall_handler.cpp // compile with: /W1 #include <tchar.h> #include <stdio.h> #include <stdlib.h> class CDerived; class CBase { public:...
The previous _purecall_handler. Returns NULL if there was no previous handler. Use _set_purecall_handler if you want to catch pure virtual functions and report them to the user in a specific way or catch them for debugging purposes.