Article View: cn.bbs.comp.unix.development.network
Article #89Re: ��δ�����ѽ��
From: ��
Date: Mon, 03 Nov 2003 11:23
Date: Mon, 03 Nov 2003 11:23
31 lines
2084 bytes
2084 bytes
�� �� windsmi (Ц��) �Ĵ������ᵽ: ��
: �� ��: Re: ��δ�����ѽ��
: ����վ: BBS ˮľ�廪վ (Mon Nov 3 19:18:50 2003)
:
: ������ѽ�����ֵĴ����ǣ�
: E:\vcprogram\NetCli\NetCliDlg.cpp(309) : error C2664: 'send' : cannot convert
: parameter 2 from 'float *' to 'const char *'
: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style
: cast or function-style cast
: �� �� nukq (��) �Ĵ������ᵽ: ��
: :
: : �� �� windsmi (Ц��) �Ĵ������ᵽ: ��
: : : ������̨����Ҫ�����ݣ����õ���send��rece���������������ֻ���Դ�char..
: : : ��������������Ҫ�õĶ���float ��ݣ���û�д�float����ݵĺ���ѽ�����û�..
: : : ��ʲô�÷�����
: :
: : ����ʲô���Ͷ���
: : float a;
: :
: : send(sock,&a,sizeof(a),0);
(const char*)&a
: : ...................
:
: --
:
: [m[36m�� ��Դ:��BBS ˮľ�廪վ http://smth.org��[FROM: 210.72.135.32][m
[m[1;32m�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 218.108.174.243][m
Technical Details
Message-ID:
<000000$TKN@smth.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!SMTHShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: 109ae0,39bdf57db01e09b1,start X-Google-Attributes: gid109ae0,public X-Google-ArrivalTime: 2003-11-03 03:25:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!SMTH From: nukq@smth.org (��) Newsgroups: cn.bbs.comp.unix.development.network Subject: Re: ��δ�����ѽ�� Date: 03 Nov 2003 11:23:11 GMT Organization: BBS ˮľ�廪վ Message-ID: <000000$TKN@smth.org> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: NetPRG/G/M.1067858554.70 Lines: 31