Click here to Skip to main content
15,867,895 members
Articles / Desktop Programming / MFC

Chat With US DI

Rate me:
Please Sign up or sign in to vote.
4.79/5 (26 votes)
7 Aug 2002CPOL 184.8K   10.2K   64   36
Chat (Client/Server) project build with code found at Code Project.

Sample Image - ChatWithUS.gif

Introduction

Chat With US DI has nothing new. This is an personal project build with source code found at Code Project. In fact, Chat With US DI is an Chat Client/Server application based on MFC CSocket with others cool controls.

Features

  • MFC Socket
  • Multi language (no need to restart application with DLL resources)
  • Visual FX Framework
  • Docking/Floating Control/View Bar
  • List View sub items with icon
  • Save/Print List View
  • ....

Big thanks to the Code Project community.

Image 2

Image 3

Image 4

Image 5

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Canada Canada

Comments and Discussions

 
GeneralOne bug and solution Pin
etpolo26-Apr-11 19:39
etpolo26-Apr-11 19:39 
This program is very good and it's work well in my project. But I found that when I use the program to transfer bulk data, the receiver may lost some data frame.

I checked the source code carefully, and found the bug code below:

static int global_count = 0;
void CClientSocket::ReceiveCom(CComData* pComData)
{
ASSERT(pComData);
try {
do {
pComData->Serialize(*m_pArchiveIn);
global_count++;
}
while(!m_pArchiveIn->IsBufferEmpty());
}
catch(CFileException* e) {
e->Delete();
m_pArchiveIn->Abort();
}
}

The Function parameter pComData is used to save and serialize the received data, but if there is more than one data frame received, the pComData can only save the most recently data frame.

and the old data is overwrite by the most recently data frame. This kind bug is also exist in function CClientSocket::ProcessServerCom().

I make a solution to this bug, but my solution code is too ugly. Anyone can make its own solution, it is not too hard.

Sorry for my poor english.
GeneralMy vote of 5 Pin
etpolo14-Feb-11 15:50
etpolo14-Feb-11 15:50 
General“an attempt was made to access an unnamed file past its end” Pin
The Yariv31-Dec-06 4:51
The Yariv31-Dec-06 4:51 
GeneralProblem loosing connection after some time [modified] Pin
RedFraggle7-Aug-06 4:05
RedFraggle7-Aug-06 4:05 
GeneralRe: Problem loosing connection after some time Pin
The Yariv1-Jan-07 3:02
The Yariv1-Jan-07 3:02 
GeneralHello Pin
ImranImi24-Jul-06 2:18
ImranImi24-Jul-06 2:18 
GeneralGetClientsList Pin
all4me27-Sep-04 5:40
all4me27-Sep-04 5:40 
GeneralMessage Splitter Position ... Pin
VEMS17-Sep-04 8:43
VEMS17-Sep-04 8:43 
GeneralDoesn't compile under Vis Studio Net 2003 Enterprise Pin
Devilon11-Feb-04 19:11
Devilon11-Feb-04 19:11 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
DCUtility12-Feb-04 5:49
professionalDCUtility12-Feb-04 5:49 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
BlitzPackage16-Nov-06 10:12
BlitzPackage16-Nov-06 10:12 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
DCUtility16-Nov-06 11:11
professionalDCUtility16-Nov-06 11:11 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
BlitzPackage16-Nov-06 14:43
BlitzPackage16-Nov-06 14:43 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
DCUtility16-Nov-06 15:24
professionalDCUtility16-Nov-06 15:24 
GeneralRe: Doesn't compile under Vis Studio Net 2003 Enterprise Pin
BlitzPackage16-Nov-06 15:29
BlitzPackage16-Nov-06 15:29 
Questioncan you tell more detail about calsses ? Pin
igala.net31-Aug-03 23:26
igala.net31-Aug-03 23:26 
Questionhow it work ??? Pin
Ladivito17-Aug-03 3:50
Ladivito17-Aug-03 3:50 
GeneralNIce code Pin
AlbertSmith11-Aug-03 3:17
AlbertSmith11-Aug-03 3:17 
QuestionHow about doing a Java Client Pin
SeanV21-Jul-03 13:25
SeanV21-Jul-03 13:25 
GeneralGreat! (Some minor bugs to solve) Pin
andrewgs736-Jul-03 20:22
andrewgs736-Jul-03 20:22 
GeneralThanks ! Pin
Panda_w30-Jun-03 21:39
Panda_w30-Jun-03 21:39 
QuestionLicense? Pin
AAntix12-May-03 0:34
AAntix12-May-03 0:34 
Generalsuper ! Pin
MIRAP4-Mar-03 10:40
MIRAP4-Mar-03 10:40 
GeneralRequest for Chat Pin
Shashikala Chari29-Jan-03 18:28
Shashikala Chari29-Jan-03 18:28 
GeneralBarry's Chat System Pin
Barretto VN25-Dec-02 1:34
Barretto VN25-Dec-02 1:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.