如何显示好友列表
是这样的,我正在做一款聊天软件,
我现在想要实现这么一个功能:我登录之后有一个好友列表,在这里获取好友列表的代码:CEdit*user=(CEdit*)GetDlgItem(IDC_COMBO1);
CEdit*psw=(CEdit*)GetDlgItem(IDC_EDIT1);
user-> GetWindowTextW(c_user);
psw-> GetWindowTextW(c_psw);
USES_CONVERSION;
m_cuser=W2A(c_user);
m_cpsw=W2A(c_psw); //转换字符编码
if(hDll==NULL)
{
return ;
}
typedef int (*Init)(char * , int , CSocket ** , int);
Init FunInit = (Init)GetProcAddress(hDll, "InitServer ");
int result = FunInit( "00.0.0.0 ", 7911 , &p_Socket , 8192);
if (result < 0)
{
MessageBox(_T( "无法连接服务器! "));
return;
}
typedef int (*Login)(char *, char *, CSocket *);
Login FunLogin = (Login)GetProcAddress(hDll, "UserLogin ");
result = FunLogin(m_cuser , m_cpsw , p_Socket);
我现在想在其他的地方也调用到好友列表,我应该怎么去调用?点一下,然后也能显示自己所有的好友。。。。可以么,这样
[解决办法]
upup