Thread: Picking up characters in console window

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Question Picking up characters in console window

    Hello!

    Is there any existing function in C or WINAPI which can pick up characters from a console window at some given coordinates and then saves it in an array or something else?

    If it does not exist then please advice me how could I write a function which will be able to do that .

    Here's the example:
    Let's say that at the coordinate (0, 0) in the console window we have a character 'A'. Now this function must be able to read this character at the coordinate (0, 0) and save it into the array.

    My biggest mind problem is that how to program a function that will be able to read a character which is already written into a console window. Everything else is simple.

    This is very important for my CGUI project so I really need this function and your help .

    Thank you in advance for your help.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Read this one.

    [edit]Damn board broke the link. Here is it again (you'll have to put it back together):

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/reading_and_writing_blocks_of_characters_and_attri butes.asp
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL Window opening with Console Window
    By carrotcake1029 in forum Windows Programming
    Replies: 2
    Last Post: 12-23-2008, 03:32 PM
  2. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. Adding colour & bmps to a Win 32 Window??
    By carey_sizer in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2004, 05:55 PM
  5. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM