一个关于vc网络编程的问题,急!!! 我现在正在编程,遇到了一个问题,请大家帮忙我要传递两个整数,一个布尔型变量,还要传递CString 怎么办啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 假设连接已经建立起来了在发送端:int x, y;bool b;CString str;TransSocket.Send(x, sizeof(int));TransSocket.Send(y, sizeof(int));TransSocket.Send(b, sizeof(bool));TransSocket.Send(str, sizeof(CString));在接受端:int x, y;bool b;CString str;ReceiveSocket.Receive(x, sizeof(int));ReceiveSocket.Receive(y, sizeof(int));ReceiveSocket.Receive(b, sizeof(bool));ReceiveSocket.Receive(str, sizeof(CString)); struct node{ int x, y; bool b; CString str;}data;TransSocket.Send((void*)data,sizeof(node));接收端同理 GDI+ bmp 图像无法装入 我开的线程怎么没有运行呢 复制文件夹的问题 第一次学c++的问题 请教利用opengl绘制带有纹理的地球 今晚夜未眠:中国的软件技术要走向何方?中国的软件技术员要走向何方? 很急的一个问题啊,请教高手解决! 内存不够!请问,CArray 数组的最大元素个数是多少? 为什么我的CFile不能长时间运行??? 中文字符集处理问题 Visual Studoi.net 集成开发环境的体验(我用的是 vs.net 正式版) Date Time Picker如何不弹出
int x, y;
bool b;
CString str;TransSocket.Send(x, sizeof(int));
TransSocket.Send(y, sizeof(int));
TransSocket.Send(b, sizeof(bool));
TransSocket.Send(str, sizeof(CString));
在接受端:
int x, y;
bool b;
CString str;ReceiveSocket.Receive(x, sizeof(int));
ReceiveSocket.Receive(y, sizeof(int));
ReceiveSocket.Receive(b, sizeof(bool));
ReceiveSocket.Receive(str, sizeof(CString));
{
int x, y;
bool b;
CString str;
}data;TransSocket.Send((void*)data,sizeof(node));接收端同理