Quote Originally Posted by RickyWh View Post
Very strange concept, thanks for the help everyone. I'll have to probably see a useful example in order to fully understand it.
Psuedo Code...
Code:
LogToFile () { Write Information to a File }
LogToConsole() { Write Information to Console }

void DoWork(CallBack)
{
   Some Work
   if (Error)
      CallBack(ErrorMessage)
}
Now you can:
Code:
DoWord(LogToFile);   // Will log errors to the file
DoWork(LogToConsole)  // Will log Errors to the Console.
Further more you can create additional callbacks later to perform functions which could not possibly have been concieved when DoWork was writter...Then just callDoWork passing the new callback routine.