Winsock我错过了什么? [英] Winsock what did I miss?

查看:73
本文介绍了Winsock我错过了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨grp!

尝试在vb6中接收udp消息,但它只显示零。我错过了什么?b $ b错过了什么?


/ Henning


-

时间只是为了防止一切都发生在一起。

似乎一切都在同一时间发生。

然后肯定会有一个时间错误。

要及时发现错误,这不是我们都希望的。

解决方案

;(像往常一样我忘记了 ;附加代码;(

Private Sub Wsock_DataArrival(ByVal bytesTotal As Long)

Dim byteData(256)As Byte

Dim i As整数

Text4.Text = bytesTotal

Text3.Text =""

Wsock.GetData byteData(),vbArray + vbByte,bytesTotal

For i = 0 To bytesTotal - 1

Text3.Text = Text3.Text + Hex


(byteData(i))

下一页

结束次级

/亨宁

亨宁< co ****** *****@coldmail.com> skrev i meddelandet

新闻:41 * ********************** @ news3.bahnhof.se ...

嗨grp!
试图收到一个vb6中的udp消息,但它只显示零。我错过了什么?

/ Henning

-
时间的存在只是为了防止一切都发生。
仍然似乎一切都发生了。
然后肯定会有一个时间错误。
要及时发现错误,这不是我们都希望的。


回复帖子:

周五,2004年12月3日20:47:07 +0100,Henning

< co *********** @ coldmail.com>陈述......我回答说:

嗨grp!
试图在vb6中接收udp msg,但它只显示零。我错过了什么?

/ Henning




你发送了一个消息吗? < g>


见下一篇文章

Shell

-
http://drshell.home.mindspring.com/

自1972年以来进入计算机。

警告!此处包含的信息和电子邮件地址仅供个人使用。进入本网站即表示您同意您仅将此数据用于合法目的,并且在任何情况下您都不会将此数据用于:允许,启用或以其他方式支持通过直接邮件传播大量未经请求的商业广告或请求,电子邮件或电话。违规者将得到相应的处理。

-


Hi grp!
Trying to receive a udp msg in vb6, but it shows only zeros. What have I
missed?

/Henning

--
Time is present only to prevent everything from happening at once.
Still it seems that everything happens at once.
Then there must be a bug in time.
To find the bug in time, isn''t that what we all hope for.

解决方案

;( as usual I "forgot" to attach the code ;(
Private Sub Wsock_DataArrival(ByVal bytesTotal As Long)
Dim byteData(256) As Byte
Dim i As Integer
Text4.Text = bytesTotal
Text3.Text = ""
Wsock.GetData byteData(), vbArray + vbByte, bytesTotal
For i = 0 To bytesTotal - 1
Text3.Text = Text3.Text + Hex


(byteData(i))
Next
End Sub
/Henning
"Henning" <co***********@coldmail.com> skrev i meddelandet
news:41***********************@news3.bahnhof.se...

Hi grp!
Trying to receive a udp msg in vb6, but it shows only zeros. What have I
missed?

/Henning

--
Time is present only to prevent everything from happening at once.
Still it seems that everything happens at once.
Then there must be a bug in time.
To find the bug in time, isn''t that what we all hope for.



In responce to the post:
On Fri, 3 Dec 2004 20:47:07 +0100, "Henning"
<co***********@coldmail.com> stated...and I replied:

Hi grp!
Trying to receive a udp msg in vb6, but it shows only zeros. What have I
missed?

/Henning



Did you send a msg? <g>

see next post
Shell
-
http://drshell.home.mindspring.com/
Into computers since 1972.
WARNING! Information and e-mail addresses contained herein, are for personal use only. By entering this site, you agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to: allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via direct mail, electronic mail, or by telephone. Violators will be dealt with accordingly.
-


这篇关于Winsock我错过了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆