Página 1 de 1

[SOLUCIONADO] Error al terminar el crypter de vb6

Publicado: 05 Jun 2009, 05:13
por fexx
Hola pues estoy empezando a programar mi crypter basandome en el video-tutorial de skyweb07
pero a mi me da error en una parte dice que falta cerrarlo y ya trate pero no pude les dejo el codigo a ver si me pueden ayudar...

Código: Seleccionar todo

Dim stub As String, archivo As String
If txtarchivo.Text = vbNullString Then
MsgBox "Primero elija un archivo a encryptar!", vbExclamation, Me.Caption
Exit Sub
Else
Open App.Path & "\stub.exe" For Binary As #1
stub = Space(LOF(1))
Get #1, , stub
Close #1
With CD
.DialogTitle = "elija donde quiere guardar el archivo"
.Filter = "aplicaciones EXE|*.exe"
.ShowSave
End With

If Not CD.FileName = vbNullString Then
archivo = RC4(archivo, "fexx")
Open CD.FileName For Binary As #1
Put #1, , stub & "##$$##" & archivo & "##$$##"
Close #1

MsgBox "archivo encryptado correctamente", vbInformation, Me.Caption
End Sub
yo lo tengo asi y me da este error:
Imagen


gracias y saludos

Re: Error al terminar el crypter de vb6

Publicado: 05 Jun 2009, 05:42
por leos_79
dice que te falta cerrar el if , con un end if

agrega un "end if" arriba del "end sub"

Re: Error al terminar el crypter de vb6

Publicado: 05 Jun 2009, 16:34
por fexx
Leos ya hice eso pero me sigue dando error mira:
Imagen

saludos

Re: Error al terminar el crypter de vb6

Publicado: 05 Jun 2009, 16:36
por shark0
Es que ni sabes cuantos bloques de 'if' agregastes.. pon otro, y si te sigue saliendo otro, y asi..

Re: Error al terminar el crypter de vb6

Publicado: 05 Jun 2009, 16:46
por fexx
tenes razon sharki ya lo solucione gracias estoy empezando XDXD
saludos y puden borrar el tema