Thread: Several Windows

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    2

    Several Windows

    All my life i have been writing under Windows. Now I need to write some stuff under Linux. Can you help me?
    The problem is:
    I have a program under Linux. It works in one window - normally I start 'xterm' and after this program - so it works in text mode in 'xterm'. But now I need this program to have 3 different windows (text mode). Program needs to read from all windows and write to all windows.

    Unfortunatelly, I have no idea how I can solve it.

    Thank you very much indeed.

  2. #2
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    You need to look at pipes or shared memory, or some form of ipc (interprocess communication). Depends on how you want to do it.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  3. #3
    .
    Join Date
    Nov 2003
    Posts
    307
    Maybe this will get you started -

    http://www.faqs.org/faqs/unix-faq/programmer/faq/

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    2
    Thanks for your answers, guys.
    But I actually need a real answer, I mean which functions should I use for my coding and in which order. But I dont wanna use Client-Server scheme. Using pipes is a really nice idea (I am playing around with fork() currently) but I dont really know how I can use it - which order and with what together.

  5. #5
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Quote Originally Posted by Ada
    Thanks for your answers, guys.
    But I actually need a real answer...

    STFW. They gave you an answer. Its not like somebody is going to sit down and write a howto post for your problem. Its called research.

    ~/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM