| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 872 人关注过本帖
标题:高手帮我看看winsock做的E-MAIL程序中的代码
只看楼主 加入收藏
thh166
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-10-31
收藏
 问题点数:0 回复次数:1 
高手帮我看看winsock做的E-MAIL程序中的代码
WINSOCK的一个E-MAIL 程序
下面的2段代码  请高手帮我看看有什么地方出错了

'接收
    Private Sub cmd_action_Click()
        Dim socket As Winsock
        Dim timeout As Timer
        Dim messages As Integer
        Set socket = wsk_socket
        Set timeout = tim_timeout
   
        If Not mailbusy Then
            If tab_mailer.Tab = 1 Then
                dco_popserver.Addentry dco_popserver.Getcurrententry
                dco_popusername.Addentry dco_popusername.Getcurrententry
                Me.Caption = "E-mail - Recieving Mail"
                checkmail socket, dco_popserver.Getcurrententry, 110, dco_popusername.Getcurrententry, txt_poppassword, timeout, False, App.Path
                fil_msgfiles.Refresh
                Unload frm_progress
                frm_main.Caption = "E-mail"
            End If
        Else
            MsgBox "请稍后...", vbOKOnly, "邮件服务器忙"
        End If
    End Sub

Private Sub Wsk_socket_DataArrival(ByVal bytesTotal As Long)
    Dim str As String
    wsk_socket.GetData str
    Response.SelStart = Len(Response.Text)
    Response.Text = Response.Text + str
    If (Left(str, 3)) = CodeNow Then
       Flag = True
    End If
End Sub
(这段代码取消了,接收就没问题。不取消发送就没问题,接收出问题了)

[[it] 本帖最后由 thh166 于 2008-12-16 12:27 编辑 [/it]]
搜索更多相关主题的帖子: 代码 winsock 
2008-12-16 12:24
thh166
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-10-31
收藏
得分:0 
请各位高手帮帮忙
谢谢了
2008-12-16 12:25
快速回复:高手帮我看看winsock做的E-MAIL程序中的代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014264 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved