$IPRINT_ON and $IPRINT_OFF directives

Purpose: By default, BCX replaces \ with \\ so that the "C" compiler does not think you are trying to embed an invalid control character. When this happens, you lose the ability to embed control characters. To prevent BCX from replacing \ with \\ place $IPRINT_OFF before the line containing the backslash(\). To restore the default behavior place $IPRINT_ON in the code.

The default BCX setting is $IPRINT_ON.


 Syntax:

 $IPRINT_OFF
  ' \Code with backslashes preserved goes here
 $IPRINT_ON

Here is a way to use $IPRINT_OFF and CONST to embed NULL in a string.


 $IPRINT_OFF
  CONST Filter$ = "Icons(*.ico)\0*.ICO\0All files(*.*)\0*.*"
 $IPRINT_ON