subcalls.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
VioWrtNChar (1.2)
◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_VIO
USHORT VioWrtNChar(pchChar, cb, usRow, usColumn, hvio)
PCH pchChar; /* pointer to character to write */
USHORT cb; /* number of times to write */
USHORT usRow; /* starting position (row) */
USHORT usColumn; /* starting position (column) */
HVIO hvio; /* video handle */
The VioWrtNChar function writes a character to the screen a specified number
of times. The function uses the present screen character attribute to
display the new character.
If the character is repeated more times than can fit on the current line,
the VioWrtNChar function continues writing it at the beginning of the next
line but does not write past the end of the screen.
The VioWrtNChar function is a family API function.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pchChar Points to the character to write.
cb Specifies the number of times to write the character.
usRow Specifies the row at which to start writing the character.
usColumn Specifies the column at which to start writing the character.
hvio Identifies an advanced video-input-and-output (AVIO) presentation
space. For AVIO programs, this handle must have been created
previously using the VioCreatePS function. For other programs,
hvio must be NULL.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be one of the following:
ERROR_VIO_COL
ERROR_VIO_INVALID_HANDLE
ERROR_VIO_ROW
Example
This example calls the VioWrtNChar function to fill the screen with capital
letter A's:
VioWrtNChar("A", /* address of character */
80 * 25, /* number of characters to write */
0, /* row */
0, /* column */
0); /* video handle */
See Also
VioCreatePS, VioWrtNCell
♦