Thread: Questions about basic chat application

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    1

    Questions about basic chat application

    I've seen it before, simple command applications written in C++ that are capiable of displaying incoming chat while waiting for input (The chat is kept at the top while waiting for input at the bottom). I've been wondering how this is done. I've been thinking about it, working too much lately to work on it a lot. I was wondering if someone could give me some ideas as to how this works. I was thinking that possibly its multithreaded, 3 threads, display, standard input and socket reading. Could this be it, or am I just making this so much more complicated then it would ever have to be. Sometimes I do this (over complicate things).

    Any ideas would be greatly appreciated and after I get started on the code I'll post it regardless.

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    This is system-specific. There is no way to write to a specific place on the screen using standard-portable C++.

    With a Windows application, you can stick text or graphics anywhere in the window.

    There might be some information on how to do it in a Windows Console on the MSDN Console Reference.

    And, these applications are probably multi-threaded too. (Also system-specific.) You could do it by looping & branching within a single thread... updating the background-chat and/or keyboard input each time through the loop.
    Last edited by DougDbug; 11-07-2005 at 03:39 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 11-23-2007, 12:13 AM
  2. I have few questions about basic C++ programing
    By wonderland in forum C++ Programming
    Replies: 2
    Last Post: 10-17-2007, 10:13 PM
  3. Basic Window application Help
    By The Brain in forum Windows Programming
    Replies: 2
    Last Post: 02-11-2005, 04:02 PM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM