CodePudding user response:
TPrinter * pr=Printer ();This is called the Printer function returns the default Printer objects
TPrinter * pr=new TPrinter ();
This is to create a TPrinter object and then need to be the necessary initialization, such as multiple printers, choose which a printer to print,