common.cpp
资源名称:src.zip [点击查看]
上传用户:guangzhiyw
上传日期:2007-01-09
资源大小:495k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #include "stdafx.h"
- #include "common.h"
- #include "msg.h"
- #include "FriendDetail.h"
- #include "TalkDlg.h"
- #include "LookDlg.h"
- FriendState::FriendState()
- {
- OnlineState=0;
- IP=Port=0;
- pTalk=NULL;
- pRecv=NULL;
- pFInfo=NULL;
- nCurrentMsg=0;
- }
- FriendState::~FriendState()
- {
- for(int i=0;i<aMsg.GetSize();i++)
- {
- delete aMsg.GetAt(i);
- }
- aMsg.RemoveAll();
- if(pFInfo!=NULL)delete pFInfo;
- if(pRecv!=NULL)delete pRecv;
- if(pTalk!=NULL)delete pTalk;
- }
- UserInfo::UserInfo()
- {
- memset(this,0,sizeof(UserInfo));
- }