Using Win32 functions in Visual FoxPro Image Gallery
Console
..msdn
AllocConsole
FillConsoleOutputAttribute
FillConsoleOutputCharacter
FreeConsole
GetConsoleScreenBufferInfo
GetConsoleWindow
GetStdHandle
ReadConsole
SetConsoleCursorPosition
SetConsoleTextAttribute
SetConsoleTitle
WriteConsole
Code examples:
Creating a console window for Visual FoxPro application
FillConsoleOutputCharacter
..msdn    Add comment     W32 Constants      Translate this page
The FillConsoleOutputCharacter function writes a character to the console screen buffer a specified number of times, beginning at the specified coordinates.
Code examples:
Creating a console window for Visual FoxPro application
Declaration:
BOOL FillConsoleOutputCharacter(
  HANDLE hConsoleOutput,
  TCHAR cCharacter,
  DWORD nLength,
  COORD dwWriteCoord,
  LPDWORD lpNumberOfCharsWritten
);

FoxPro declaration:
DECLARE INTEGER FillConsoleOutputCharacter IN kernel32;
    INTEGER hConsoleOutput,;
    SHORT   cCharacter,;
    INTEGER nLength,;
    SHORT   x,;
    SHORT   y,;
    INTEGER lpNumberOfCharsWritten

Parameters:
hConsoleOutput
[in] Handle to a console screen buffer.

cCharacter
[in] Character to write to the console screen buffer.

nLength
[in] Number of character cells to which the character should be written.

dwWriteCoord
[in] A COORD structure that specifies the console screen buffer coordinates of the first cell to which the character is to be written.

lpNumberOfCharsWritten
[out] Pointer to a variable that receives the number of characters actually written to the console screen buffer.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
The attribute values at the positions written are not changed. Use the FillConsoleOutputAttribute function to set the characters attribute.

Normally I would declare COORD dwWriteCoord as STRING @dwCursorPosition. It did not work this way. Fortunately SHORT, SHORT does the job.

See also: FillConsoleOutputAttribute, SetConsoleTextAttribute.
Word Index links for the FillConsoleOutputCharacter :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-11-10 09:46:46
Modified: 2004-11-10 09:53:23
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.93.187)
13 sec.Function: 'GetSecurityDescriptorDacl'
29 sec.Function: 'gethostbyname'
43 sec.
Function group: 'File System'
58 sec.Function: 'LPtoDP'
1.2 min.Function: 'GetBkMode'
1.43 min.Function: 'DwmExtendFrameIntoClientArea'
1.68 min.Function: 'GetEnhMetaFile'
1.93 min.Function: 'GetUdpTable'
2.17 min.Function: 'WNetGetUniversalName'
2.42 min.Function: 'FindClose'
Google
Advertise here!