Re: how do i close an app that has no forms?
From: Keith G Hicks (krh_at_comcast.net)
Date: 08/04/04
- Next message: Cash: "Calling a VB .NET DLL from VC++ .NET"
- Previous message: Randy Birch: "Re: Another IP address question (how to get IP address of remote computer)"
- In reply to: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Next in thread: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Reply: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 12:10:01 -0400
I should have included more info:
Dim hINetSession As Long
hINetSession = InternetOpen("MyFTPClient", 0, vbNullString, vbNullString, 0)
' attempt to connect to the ftp site
Dim hSession As Long
hSession = InternetConnect(hINetSession, sFTPServer, "21", sFTPUser,
sFTPPwd, INTERNET_SERVICE_FTP, 0, 0)
If hSession = 0 Then
Screen.MousePointer = vbDefault
MsgBox "Problem connecting to FTP site”, vbExclamation, sAppName
Exit Sub
End If
' code in here that works with ftp site files, but is commented out during
current testing I'm doing (does not seem to affect this problem)
Dim x As Integer, y As Integer
x = InternetCloseHandle(hSession)
y = InternetCloseHandle(hINetSession)
If x = True And y = True Then
MsgBox "closed"
Else
MsgBox "not closed"
End If
I am getting a "not closed" message.
- Next message: Cash: "Calling a VB .NET DLL from VC++ .NET"
- Previous message: Randy Birch: "Re: Another IP address question (how to get IP address of remote computer)"
- In reply to: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Next in thread: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Reply: Keith G Hicks: "Re: how do i close an app that has no forms?"
- Messages sorted by: [ date ] [ thread ]