Thread: Chat Program

  1. #1
    Unregistered
    Guest

    Unhappy Chat Program

    I'm looking on information on how to even begin to write a program to simulate a chat room. Any ideas on where I can find examples or information??? in C or C++

    thanks!!
    L

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    367
    *Crying*

    It makes me so sad to see your sad face coz there's no way you can make a chat program in C++. Try CGI instead. Makes me so sad..................

    /* edit by doubleanti: watch your tongue before we cut it off... */

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    Crying*

    It makes me so sad to see your sad face coz CAN make a chat program in C++. try saying ur a n00b instead. Makes me so sad..................

    wtf do u think they make multiplayer games in? do they have chat on them??? dumbass

    /* edit by doubleanti: watch your tongue before we cut it off... */

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    You can write chat programs in C++ but it might be alittle bit more complicated then you think. You could start by looking into sockets

  5. #5
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    if you want 'to simulate' a chat room than you can make a program that has a bot in it that will respond to specific words and statements, and it can randomly go through different messages.

    If you want an actual chat program, you will need a client - server or peer 2 peer architect. Search for Winsock.

    Look at tutorial 'Winsock4' here: http://www.cs.tamu.edu/course-info/cpsc463/tutorial/
    the best things in life are simple.

  6. #6
    Registered User
    Join Date
    Apr 2002
    Posts
    142
    or you can try and use DirectPlay,

  7. #7
    Unregistered
    Guest
    Both direct play and windows socket look like the would work.. Thanks for a start...

    I have 3 months to finish this project for sckool, I also have someone to help me when i get stuck.. Should be fun

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    tryin to "simulate" a chat room? thats more AI then sockets.
    it IS possible to make a chat client AND a server with C (i did). did you also know that a LOT of cgi progs are really C/C++?

  9. #9
    Unregistered
    Guest
    Yea im gona use winsock and c..

    Its gona be a console app i think.

    Not a simulation! its an actual chat client. I know it can be done.. now its time to start..

  10. #10
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Hahaha... Thats the funniest thing ive heard in a long time, you cant make a chatroom in C++ . Ever heard of ICQ (or outlook express or internet explorer for that matter! They all access the internet and so must have this basic functinality) what do you think that was programmed in? Heck it takes about 5 min to create a chat program in VB! Good luck with the project, wont take anyone 5 mins though!
    VC++ 6

  11. #11
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    yes that was funny and sad

  12. #12
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    Good luck with the project, wont take anyone 5 mins though!
    ... not true. a real basic chat program would be about 200 lines. you really dont need to connect to the internet with a chat program. you can have one person be the srver and one be the client. o ya, notice that this is a C++, not VB ...
    (wonder if im taking this the wrong way :P)

  13. #13
    Unregistered
    Guest
    Man whats with these idiots thinking you cant

    Flikm said exactly what im doing. One app can be the server, the other the client. All the clients can enter the ip or name of the computer with the server on the netwaork... Whenever the server recieves a msg it brodcasts it to all the clients. Whalaaa A chat program.

    Uhh well if you learn C++ in school and they ask you to do an asignment, I would think they want you to do it in the language they ask.. Just a little thought..

    VB is for pussys. So much is done for you.. Babies could use VB

  14. #14
    Registered User VBprogrammer's Avatar
    Join Date
    Mar 2002
    Posts
    175
    Hey! You C++ (sorry to 'tar you all with the same brush') programmers are always putting VB down. It really is quite a clever system, ok you can do everything but using the Windows API it is possible to gain a good idea of how to program in windows. Most of my programming experience is in VB (i dont use it now, and refuse to install it on my comp again) and i am now learning both C/C++ and ASM at the same time. I learned the basic skill of logical thinking and, of course, cought the 'programming bug' (sounds nasty!) through my experements with VB. At the end of the day every programming language (or development tool if you prefere) has it place, i ment what i said about being able to program a chat program in VB in 5 mins! Let see you do that in VC++, not bloody likely!

    Just incase you didnt get what i was saying i found it funny that someone apparently with programming experiece thought you couldn't make a chat program in C++ (the most common development language, as well as being the fastest and most powerful high level language) when even i 'simple' language like VB is able to create such a program.
    VC++ 6

  15. #15
    Registered User
    Join Date
    Apr 2002
    Posts
    1

    Question

    so I don't know who it is that has been responding as the Unregistered Guest to my original post actting like it was their question . . . . but I appreciate everyone responding . . .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. my server program auto shut down
    By hanhao in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-13-2004, 10:49 PM
  3. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  4. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM