Assign a method to the global function pointer that prints the message to a dialog box