954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do i do chat program using MFC (Microsoft Foundation Classes) and Visual Basic?

Dear,
Currently i'm doing a project to design a chatting program using MFC( Microsoft Foundation Classes) and Visual Basic (VB). Just wondering, could you help me with this topic?
Your attention kindly appreciated.
Thank you.

shwutyng
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

Hi everyone,
I am not very sure about vb but as for c++ you can try and use sockets
thus by creating your very own descended class and using their onconnect, onclose
and onreceive functions.

Yours Sincerely

Richard West

freesoft_2000
Practically a Master Poster
623 posts since Jun 2004
Reputation Points: 25
Solved Threads: 10
 

I'm doing this same program for school but don't know where to start when it comes to client/server interaction.

I need to simply send text and/or emoticons using an MFC developed application in C++.

Thanks in advance for any help I can get.

PS: if someone could make a quick tutorial that would be amazing.

syncy
Newbie Poster
8 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
 
using an MFC developed application in C++.

then why did you say visual basic?

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 
then why did you say visual basic?


In my reply to the thread I hadn't explicitly mentioned visual basic, only C++, but apologies for the confusion.

I've set-up a simple MFC window and I know how to call another dialog from that main dialogue, but as far as the actual "chat" and "chat session" stuff, I have no idea where to start. Any ideas?

syncy
Newbie Poster
8 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
 

oh i see - i just got confused because i assumed it was your thread

use winsock for the chat

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

use CSocket object overide its onreceive method .use send method to send data and receive method to receive it...

mayurbonde
Newbie Poster
1 post since Sep 2011
Reputation Points: 10
Solved Threads: 0
 
use CSocket object overide its onreceive method .use send method to send data and receive method to receive it...


I'm sure your heart is in the right place, but you may wish to check the dates of the threads before you post.

BitBlt
Master Poster
711 posts since Feb 2011
Reputation Points: 367
Solved Threads: 109
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You