vb call IE download interface

Private Declare Function DoFileDownload Lib "shdocvw.dll" _
    (ByVal lpszFile As String) As Long
Private Sub Command1_Click()   'ÏÂÔØ
 If Text1.Text = "" Then
    MsgBox "ÊäÈëÏÂÔØÍøÕ¾µÄÍøÖ·²»ÄÜΪ¿Õ!", 64, "ÌáʾÐÅÏ¢"
 Else
    Dim sDownload As String
    sDownload = StrConv(Text1.Text, vbUnicode)
    Call DoFileDownload(sDownload)
 End If
End Sub
Private Sub Command2_Click()
  End
End Sub

Published 24 original articles · won praise 1 · views 3097

Guess you like

Origin blog.csdn.net/aeaxea43/article/details/104046358