⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directplay.bas

📁 这是一个语音播放程序,对于编程人员很有帮助,使用vb开发的
💻 BAS
字号:
Attribute VB_Name = "DirectPlay"
Public Sub InitDplay()
    Set dp = dx.DirectPlayCreate("")
    Set dpl = dx.DirectPlayLobbyCreate()
End Sub

Public Sub InitAddress()
    
    If gIP <> "" Then
        Set dpa = dpl.CreateINetAddress(gIP, 0)
    Else
        Set dpa = dpl.CreateINetAddress("", 0)
    End If
    
    dp.InitializeConnection dpa
End Sub

Public Sub JoinChat()

    If dp Is Nothing Then Call InitDplay 'init dplay
    If dpa Is Nothing Then Call InitAddress 'init the dplay address
    
    frmJoin.Show 1  ' show the join form
    
    
End Sub


Public Sub StartMessageEngine()
    frmMain.tmrMSG.Interval = 500
    frmMain.tmrMSG.Enabled = True
End Sub




Public Sub CleanUp()
    
    Set dpa = Nothing
    Set dpM = Nothing
    Set dpl = Nothing
    Set dp = Nothing
    
    
    Set dsb = Nothing
    Set ds = Nothing
    Set dscb = Nothing
    Set dsc = Nothing
    Set dx = Nothing
    
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -