Delphi

Changing the papersize of a print job.

Author: Embarcadero USA Question and Answer Database FAQ603D.txt - Changing the papersize of a print job. Category :Printing Platform :All-32Bit Product : Question: How can I change the papersize of my print job? Answer: One way to change printer settings at the start of a print job is to change the printer's devicemode structure. See: TDEVMODE in the Delphi 1.02 help file or…
Read more
C++

Converting an AnsiString to Char*

Author: Embarcadero USA Question and Answer Database FAQ1360C.txt Converting an AnsiString to Char* Category :VCL Platform :All Product :C++Builder 1.x Question: I am trying to convert a String to char* but keep receiving the error: "Cannot cast…
C++

How do I make a ComboBox Read-Only?

Author: Embarcadero USA Question and Answer Database FAQ971C.txt How do I make a ComboBox Read-Only? Category :VCL Platform :All Product :C++Builder 1.x Question: How do I make a ComboBox Read-Only? Answer: The same effect can be achieved by…
Delphi

Direct Commands to Printer - Passthrough/Escape

Author: Embarcadero USA Technical Information Database TI1497D.txt - Direct Commands to Printer - Passthrough/Escape Category :Printing Platform :All-32Bit Product :All32Bit, Description: Although Delphi's TPrinter unit makes it easy to interface to a given printer, there are times when you may need to drop down to the printers level and send device specific escape sequences. Under…
Read more
C++

Showing a splash screen at startup

Author: Embarcadero USA Question and Answer Database FAQ533C.txt Showing a splash screen at startup Category :VCL Platform :All Product :C++Builder 1.x Question: Where is the best place to open a splash screen on program start up? Answer: The best place to…
Delphi

Passing Multidimensional Arrays as Parameters

Author: Embarcadero USA Technical Information Database TI1477D.txt - Passing Multidimensional Arrays as Parameters Category :Object Pascal Platform :All-32Bit Product : Description: Passing an array to a procedure or function is straight forward and behaves as…
C++

Convert Hex String to an Integer Value.

Author: Embarcadero USA Technical Information Database TI2203C.txt Convert Hex String to an Integer Value. Category :General Platform :All Product :C/C++ All Description: This document provides a method to read hexadecimal numbers. The atoi() function ignores the A-F digits in a hexadecimal number. In fact, the first non-digit character in the string passed to atoi()…
Read more
C++

Output Numbers with Thousands Separator

Author: Embarcadero USA Technical Information Database TI2183C.txt Output Numbers with Thousands Separator Category :General Platform :All Product :C/C++ All Description: How do I output comma-formatted numbers such as 1,000,000 with C++ IOStreams?