CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2012
    Posts
    2

    EXTREMELY simple chat with Borland C++ builder

    Hello, i need your help with this:
    i am making a skype "analog". It is just very basic chat, no ip. The main principle is to have two classes:
    class User and class Server. I now need to send user1 message to user2. Of course that message should be sent to server (class Server), and then server would redirect it to the user2.
    Message should be packed in an array or string.

    Question: can you give me an example on how to send a message from memo1 box to "server" and then from "server"to memo2 (this is user2) box.
    I think that i should write a message to array (array structure: user_id chat_text ), but HOW TO DO IT?

    Everything should be done very basic, using structures and classes (and functions), no sockets!!!

    I would be very grateful for your help.

    Here is how the program window looks:

    Name:  71J63.png
Views: 1784
Size:  37.7 KB

  2. #2
    Join Date
    Nov 2012
    Posts
    2

    Re: EXTREMELY simple chat with Borland C++ builder

    Name:  3qGMh.png
Views: 1284
Size:  50.2 KB

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: EXTREMELY simple chat with Borland C++ builder

    I'm sorry but very few people use Borland these days so you might get better response on a Borland site.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: EXTREMELY simple chat with Borland C++ builder

    Besides, this forum name clearly states Visual C++ Programming, ain't it?
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured