I am developing a C ++ tool that should work transparently for the main program. That is: if the user simply attaches the tool to his program, the tool will be activated. To do this, I need to call two functions, a function a(), before it main()gets control and a function b()after completion main().
I can easily do the first by declaring a global variable in my program and initializing it with a return code a(). iee
int v = a() ;
but I can not find a way to call b()after completion main()?
Can anyone think of how to do this?
The tool runs on Windows, but I would prefer not to use any specific OS calls.
Thanks George
source
share