wininet.dll 中关于FTP函数的问题,百思不得其解?

yuanmu 2003-10-21 11:35:32
调用wininet.dll 中函数

Public Declare Function internetopen Lib "wininet.dll" _
Alias "InternetOpenA" _
(ByVal lpszcallername As String, _
ByVal dwaccesstype As Long, _
ByVal lpszproxyname As String, _
ByVal lpszproxybypass As String, _
ByVal dwFlags As Long) As Long
Public Declare Function internetconnect Lib "wininet.dll" _
Alias "InternetConnectA" _
(ByVal hinternetsession As Long, _
ByVal lpszservername As String, _
ByVal nproxyport As Integer, _
ByVal lpszusername As String, _
ByVal lpszpassword As String, _
ByVal dwservice As Long, _
ByVal dwFlags As Long, _
ByVal dwcontext As Long) As Long

Public Declare Function internetclosehandle Lib "wininet.dll" _
Alias "InternetCloseHandle" (ByVal hInet As Long) As Integer

调用过程为:
Open --> Connect -->Close(Connect) --> Close(Open)

在SP3包下VB程序能够正常退出
但在SP2,SP4包下VB程序常驻内存,无法退出。请问Why及如何解决?

...全文
77 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunnyboy6281 2003-10-22
  • 打赏
  • 举报
回复
vc5写FTP
http://www.csdn.net/develop/Read_Article.asp?Id=6152
aha99 2003-10-21
  • 打赏
  • 举报
回复
没遇到过这种情况,学习。。。
zqfleaf 2003-10-21
  • 打赏
  • 举报
回复
如果只求功能的话可以用EZFTP控件
到google上找一下有下的。

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧