call back
-
Hi, call back function is said to be called by Operation system only. I want to make a call back funtion and control the time and place it is called. Can I make it? Would you please append an example ? Thank you. Best regard. I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. One concrete prolem is worth a thousand unapplied abstractions.
-
Hi, call back function is said to be called by Operation system only. I want to make a call back funtion and control the time and place it is called. Can I make it? Would you please append an example ? Thank you. Best regard. I confess that I am a stubborn guy, but why not put things thoroughly, logically and systematically clean. One concrete prolem is worth a thousand unapplied abstractions.
Yes as long your application is still running! ;P A callback function is "not much than calling convention". In fact
WINAPI
andCALLBACK
is the same__stdcall
. Do not confuse CALLBACK function and RPC!int __cdecl _tmain(int argc, _TCHAR **argv, _TCHAR **envp)
{
myDebugCallback( TEXT("Hello world..." ) );
}void CALLBACK myDebugCallback(LPCTSTR strMessage)
{
_stprintf(TEXT("Message: %s\n"), strMessage);
}"Dirty hands lead to important discovery..." - Thomas Edison