probaste reinstalando Visual Basic?, por ahi te soluciona el problema si, no fijate si el acceso desde donde inicias Visual Basic si ejecuta el "vb6.exe" y no otra cosa.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúPrivate Function SetTheCookie(Web As String, sName As String, sData As String) As Boolean
SetTheCookie = InternetSetCookie(Web, sName, sData)
End Function
Private Sub Command1_Click()
If SetTheCookie("http://www.microsoft.com/index.htm", "Test", "Sent as Test via VB") = True Then
' lo hizo bien
Else
'Fallo
End If
End Sub
Private Sub TheCookie(Web as string)
Dim bRet As Boolean
bRet = InternetSetCookie(Web, "Test", "Sent as Test via VB")
If bRet = False Then
MsgBox "Failed"
End If
End Sub
Private Sub Command1_Click()
call TheCookie("http://www.microsoft.com/index.htm")
End Sub
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Handle As Long
Private Sub Command1_Click()
Dim WinTitle As String
Handle = FindWindow("Notepad", vbNullString)
WinTitle = Space(100)
GetWindowText Handle, WinTitle, Len(WinTitle)
Debug.Print WinTitle
End Sub