• Lunes 12 de Mayo de 2025, 12:07

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - Cyclop

Páginas: 1 ... 5 6 [7] 8 9 ... 13
151
Visual Basic 6.0 e inferiores / Re: Como Crear Un Generador De Claves
« en: Jueves 30 de Septiembre de 2004, 01:56 »
El activelock es un codigo en VB para bloquear con seriales tus porgramas biene incluido un Keygen

ActiveLock

Salu2

Cyclop

152
Visual Basic 6.0 e inferiores / Re: Como Listar Los Directorios Y Ficheros Del Ftp
« en: Lunes 27 de Septiembre de 2004, 02:39 »
aunque te recomiendo que bajes el API Guide 3.7 del www.allapi.net

Salu2

Cyclop

153
Visual Basic 6.0 e inferiores / Re: Como Listar Los Directorios Y Ficheros Del Ftp
« en: Lunes 27 de Septiembre de 2004, 02:34 »
A ver si esto te ayuda

Código: Text
  1. Const FTP_TRANSFER_TYPE_UNKNOWN = &H0
  2. Const FTP_TRANSFER_TYPE_ASCII = &H1
  3. Const FTP_TRANSFER_TYPE_BINARY = &H2
  4. Const INTERNET_DEFAULT_FTP_PORT = 21               ' default for FTP servers
  5. Const INTERNET_SERVICE_FTP = 1
  6. Const INTERNET_FLAG_PASSIVE = &H8000000            ' used for FTP connections
  7. Const INTERNET_OPEN_TYPE_PRECONFIG = 0                    ' use registry configuration
  8. Const INTERNET_OPEN_TYPE_DIRECT = 1                        ' direct to net
  9. Const INTERNET_OPEN_TYPE_PROXY = 3                         ' via named proxy
  10. Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4   ' prevent using java/script/INS
  11. Const MAX_PATH = 260
  12. Private Type FILETIME
  13.     dwLowDateTime As Long
  14.     dwHighDateTime As Long
  15. End Type
  16. Private Type WIN32_FIND_DATA
  17.     dwFileAttributes As Long
  18.     ftCreationTime As FILETIME
  19.     ftLastAccessTime As FILETIME
  20.     ftLastWriteTime As FILETIME
  21.     nFileSizeHigh As Long
  22.     nFileSizeLow As Long
  23.     dwReserved0 As Long
  24.     dwReserved1 As Long
  25.     cFileName As String * MAX_PATH
  26.     cAlternate As String * 14
  27. End Type
  28. Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
  29. Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUserName As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
  30. Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
  31. Private Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  32. Private Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, lpdwCurrentDirectory As Long) As Long
  33. Private Declare Function FtpCreateDirectory Lib "wininet.dll" Alias "FtpCreateDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  34. Private Declare Function FtpRemoveDirectory Lib "wininet.dll" Alias "FtpRemoveDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  35. Private Declare Function FtpDeleteFile Lib "wininet.dll" Alias "FtpDeleteFileA" (ByVal hFtpSession As Long, ByVal lpszFileName As String) As Boolean
  36. Private Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" (ByVal hFtpSession As Long, ByVal lpszExisting As String, ByVal lpszNew As String) As Boolean
  37. Private Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" (ByVal hConnect As Long, ByVal lpszRemoteFile As String, ByVal lpszNewFile As String, ByVal fFailIfExists As Long, ByVal dwFlagsAndAttributes As Long, ByVal dwFlags As Long, ByRef dwContext As Long) As Boolean
  38. Private Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hConnect As Long, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String, ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
  39. Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" (lpdwError As Long, ByVal lpszBuffer As String, lpdwBufferLength As Long) As Boolean
  40. Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (ByVal hFtpSession As Long, ByVal lpszSearchFile As String, lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long
  41. Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long
  42. Const PassiveConnection As Boolean = True
  43. Private Sub Form_Load()
  44.     'KPD-Team 2000
  45.     'URL: http://www.allapi.net
  46.     'E-Mail: KPDTeam@allapi.net
  47.     Dim hConnection As Long, hOpen As Long, sOrgPath  As String
  48.     'open an internet connection
  49.     hOpen = InternetOpen("API-Guide sample program", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0)
  50.     'connect to the FTP server
  51.     hConnection = InternetConnect(hOpen, "your ftp server", INTERNET_DEFAULT_FTP_PORT, "your login", "your password", INTERNET_SERVICE_FTP, IIf(PassiveConnection, INTERNET_FLAG_PASSIVE, 0), 0)
  52.     'create a buffer to store the original directory
  53.     sOrgPath = String(MAX_PATH, 0)
  54.     'get the directory
  55.     FtpGetCurrentDirectory hConnection, sOrgPath, Len(sOrgPath)
  56.     'create a new directory 'testing'
  57.     FtpCreateDirectory hConnection, "testing"
  58.     'set the current directory to 'root/testing'
  59.     FtpSetCurrentDirectory hConnection, "testing"
  60.     'upload the file 'test.htm'
  61.     FtpPutFile hConnection, "C:\test.htm", "test.htm", FTP_TRANSFER_TYPE_UNKNOWN, 0
  62.     'rename 'test.htm' to 'apiguide.htm'
  63.     FtpRenameFile hConnection, "test.htm", "apiguide.htm"
  64.     'enumerate the file list from the current directory ('root/testing')
  65.     EnumFiles hConnection
  66.     'retrieve the file from the FTP server
  67.     FtpGetFile hConnection, "apiguide.htm", "c:\apiguide.htm", False, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0
  68.     'delete the file from the FTP server
  69.     FtpDeleteFile hConnection, "apiguide.htm"
  70.     'set the current directory back to the root
  71.     FtpSetCurrentDirectory hConnection, sOrgPath
  72.     'remove the direcrtory 'testing'
  73.     FtpRemoveDirectory hConnection, "testing"
  74.     'close the FTP connection
  75.     InternetCloseHandle hConnection
  76.     'close the internet connection
  77.     InternetCloseHandle hOpen
  78. End Sub
  79. Public Sub EnumFiles(hConnection As Long)
  80.     Dim pData As WIN32_FIND_DATA, hFind As Long, lRet As Long
  81.     'set the graphics mode to persistent
  82.     Me.AutoRedraw = True
  83.     'create a buffer
  84.     pData.cFileName = String(MAX_PATH, 0)
  85.     'find the first file
  86.     hFind = FtpFindFirstFile(hConnection, "*.*", pData, 0, 0)
  87.     'if there's no file, then exit sub
  88.     If hFind = 0 Then Exit Sub
  89.     'show the filename
  90.     Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1)
  91.     Do
  92.         'create a buffer
  93.         pData.cFileName = String(MAX_PATH, 0)
  94.         'find the next file
  95.         lRet = InternetFindNextFile(hFind, pData)
  96.         'if there's no next file, exit do
  97.         If lRet = 0 Then Exit Do
  98.         'show the filename
  99.         Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1)
  100.     Loop
  101.     'close the search handle
  102.     InternetCloseHandle hFind
  103. End Sub
  104. Sub ShowError()
  105.     Dim lErr As Long, sErr As String, lenBuf As Long
  106.     'get the required buffer size
  107.     InternetGetLastResponseInfo lErr, sErr, lenBuf
  108.     'create a buffer
  109.     sErr = String(lenBuf, 0)
  110.     'retrieve the last respons info
  111.     InternetGetLastResponseInfo lErr, sErr, lenBuf
  112.     'show the last response info
  113.     MsgBox "Error " + CStr(lErr) + ": " + sErr, vbOKOnly + vbCritical
  114. End Sub
  115.  
  116.  

Salu2

Cyclop

154
Visual Basic 6.0 e inferiores / Re: Un Buen Dato
« en: Sábado 25 de Septiembre de 2004, 20:42 »
Para los que siempre les falta un OCX lo pueden encontrar aca


http://www.zerohack.it/downloads/ocx.htm


 :D


Salu2


Cyclop

155
Visual Basic 6.0 e inferiores / Re: Adjuntar Archivo... Winsock
« en: Sábado 25 de Septiembre de 2004, 20:32 »
Puedes hacer 3 cosas

1.- Crearte un instalador para tu programa con Inno Setup que es gratis

2.- Puedes adjuntar el MsWinSck.Ocx en el archivo de Recursos (Leer ese tema)

3.- O hace poco publique un Control Personalizado de WinSock que no es mio.

     http://foros.solocodigo.com/index.php?showtopic=11235

Funciona igual que el ActiveX Winsock pero directamente con la libreria (DLL)

Salu2

Cyclop

156
Visual Basic 6.0 e inferiores / Registro Mx
« en: Viernes 24 de Septiembre de 2004, 02:02 »
Hola amigos alguien sabe como funcionan los registros MX


Salu2


Cyclop

157
Visual Basic 6.0 e inferiores / Re: Mostrar Un Formulario A Partir De Un String
« en: Viernes 24 de Septiembre de 2004, 01:16 »
:( Siento un poco desilucionarte pero el codigo que puse no funka con Forms, con cualquier otro objeto menos formularios, creo que vas a tener que hacerlo con la estructura SELECT CASE.

Salu2

Cyclop

158
Visual Basic 6.0 e inferiores / Re: Un Buen Dato
« en: Jueves 23 de Septiembre de 2004, 01:29 »
Aca va el otro RmFrame

159
Visual Basic 6.0 e inferiores / Un Buen Dato
« en: Jueves 23 de Septiembre de 2004, 01:27 »
Hola amigos, despues de horas de navegar por internet, encontre un controles personalizados de Winsock, Frame, muy interesantes para aquellos que no gustan de cargar muchos activex en sus aplicaciones.

aca van


Espero que les guste

Salu2

Cyclop

160
Visual Basic 6.0 e inferiores / Re: Código De Barras
« en: Miércoles 22 de Septiembre de 2004, 01:59 »
Por que mejor no usas fuentes *.TTF para tus codigos de barras, al menos en VFP lo uso asi.

http://www.barcodesinc.com/free-barcode-font/

http://www.idautomation-com-code-93-barcod...m-download.net/

Salu2


Cyclop

161
Visual Basic 6.0 e inferiores / Re: Ayuda De Codigo
« en: Martes 21 de Septiembre de 2004, 21:18 »
uhmmm .... y esto funcionara?


Código: Text
  1. 'In general section
  2. Const EWX_LOGOFF = 0
  3. Const EWX_SHUTDOWN = 1
  4. Const EWX_REBOOT = 2
  5. Const EWX_FORCE = 4
  6. Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
  7. Private Sub Form_Load()
  8.     'KPD-Team 1998
  9.     'URL: http://www.allapi.net/
  10.     'E-Mail: KPDTeam@Allapi.net
  11.     msg = MsgBox("This program is going to reboot your computer. Press OK to continue or Cancel to stop.", vbCritical + vbOKCancel + 256, App.Title)
  12.     If msg = vbCancel Then End
  13.     'reboot the computer
  14.     ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)
  15. End Sub
  16.  
  17.  


Salu2


Cyclop

162
Visual Basic 6.0 e inferiores / Re: Mostrar Un Formulario A Partir De Un String
« en: Martes 21 de Septiembre de 2004, 19:59 »
Y si le colocas en un objeto Collection, y lo vas activando por medio de la Key, pero no se si funka ... ummmh no tengo vb en esta pc.

Pero weno ahi vamos

Código: Text
  1. Dim oVentanas As Collection
  2.  
  3. oVentanas.Add "Ventana1", wForm1
  4. oVentanas.Add "Ventana2", wForm2
  5.  
  6. ' Para activarlas
  7. oVentanas.Item("Ventana1").Show 1
  8.  
  9.  

Jeje ... no se si funcionara ...

Salu2

Cyclop

163
Visual Basic 6.0 e inferiores / Re: Api Sendmessage Y Findwindow
« en: Martes 21 de Septiembre de 2004, 01:28 »
Puede ser que el titulo de la ventana no sea correcta

baja de esta pagina el programa Spy32

http://www.arc3000.com/html/herramientas.html

Este programa tiene la opcion para listar todas las ventanas activas en memoria, revisa si el nombre de la ventana que tu ingresaste se encuentre activa, puede que te hayas equivocado en el nombre.


Salu2


cyclop

164
Visual Basic 6.0 e inferiores / Programa Sms
« en: Sábado 18 de Septiembre de 2004, 21:16 »
Hola amigos como se puede hacer un programa que envie SMS a un movistar


Salu2


Cyclop

165
Visual Basic 6.0 e inferiores / Re: Me Gustaria Saber Donde Puedo Encontrar
« en: Miércoles 15 de Septiembre de 2004, 01:35 »
Aca tienes otro link para aprender, pero si tienes la ayuda instalada (MSDN) ahi explica mas detallado los operadores de comparacion bit a bit

http://msdn.microsoft.com/library/spa/defa...ml/vaoprXor.asp

No lo manejo muy bien pero lo que hace es convierte un numero a binario y compara cada bit con el otro numero tambien binario, de este resultado te queda otro numero binario qe lo convierte a decimal

un burdo ejemplo

01010101

xor

11001010

=

10011111

lo compara en base a una tabla de estructura logica


Salu2


Cyclop

166
Visual Basic 6.0 e inferiores / Re: Me Gustaria Saber Donde Puedo Encontrar
« en: Miércoles 15 de Septiembre de 2004, 01:15 »
Segun la definicion de KPD-Team. es una funcion que copia un bloque de memoria de una ubicacion a otro. Ejemplo .

Código: Text
  1.  
  2. Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)
  3. Private Declare Function GetTickCount Lib "kernel32" () As Long
  4. Private Sub Form_Load()
  5.     'KPD-Team 1999
  6.     'URL: http://www.allapi.net/
  7.     'E-Mail: KPDTeam@Allapi.net
  8.     Dim sSave As String, Cnt As Long, T As Long, Pos As Long, Length As Long
  9.     Const mStr = "Hello "
  10.     Length = Len(mStr)
  11.     sSave = Space(5000 * Length) 'make buffer for justified comparison
  12.     'Get the current tickcount
  13.     T = GetTickCount
  14.     Pos = 1
  15.     sSave = Space(5000 * Length)
  16.     For Cnt = 1 To 5000
  17.       Mid(sSave, Pos, Length) = mStr
  18.       Pos = Pos + Length
  19.     Next Cnt
  20.     'Show the results
  21.     MsgBox "It took Visual basic" + Str$(GetTickCount - T) + " msecs. to add 5000 times a string to itself."
  22.     'Get the current tickcount
  23.     T = GetTickCount
  24.     Pos = 0
  25.     sSave = Space(5000 * Length)
  26.     For Cnt = 1 To 5000
  27.         CopyMemory ByVal StrPtr(sSave) + Pos, ByVal StrPtr(mStr), LenB(mStr)
  28.         Pos = Pos + LenB(mStr)
  29.     Next Cnt
  30.     'Show the results
  31.     MsgBox "It took CopyMemory" + Str$(GetTickCount - T) + " msecs. to add 5000 times a string to itself."
  32. End Sub
  33.  
  34.  

Salu2


Cyclop

167
Visual Basic 6.0 e inferiores / Re: Cgi Creado En Visual Basic
« en: Lunes 13 de Septiembre de 2004, 20:41 »
Mira lo que me encontre, en la casa de don andres .... un poco tarde pero weno


Portal VB =)


Salu2

Cyclop

168
Visual Basic 6.0 e inferiores / Re: Archivos Dentro De Una Variable
« en: Viernes 10 de Septiembre de 2004, 21:54 »
a ver prueba asi

Código: Text
  1. Set Picturebox.picture = sVariable
  2.  
  3.  

Algo asi se usa cuando se carga imagenes de un archivo de recursos


Salu2

Cyclop

169
Visual Basic 6.0 e inferiores / Re: Conoceis El Janus Grid
« en: Martes 7 de Septiembre de 2004, 21:49 »
Disculpa, pero donde lo podemos bajar?

Salu2

Cyclop

170
Visual Basic 6.0 e inferiores / Re: Determinar El Valor De Un Campo Autonumerico
« en: Martes 7 de Septiembre de 2004, 21:33 »
Supongo que funciona como un campo normal

txtNumero.Text  = adodc1!Numero


Salu2


Cyclop

171
Visual Basic 6.0 e inferiores / Re: Determinar El Valor De Un Campo Autonumerico
« en: Martes 7 de Septiembre de 2004, 02:38 »
uhmmm.... Los autonumericos se generan en el momento del update por que va a revisar que la correlatividad no se duplique en caso de haber varias instancias.

Salu2.

Cyclop

172
Visual Basic 6.0 e inferiores / Re: Aplicacion Auto Ejecutable
« en: Martes 7 de Septiembre de 2004, 02:34 »
Lo que dice RadicalEd es que cree una entrada en el registro de window para que se ejecute automaticamente cada vez que entres al windows, estas entradas lo puedes crear en el folder HKCU\Software\Microsoft\Windows\CurrentVersion\Run

Ejemplo:

Código: Text
  1. Set oReg = CreateObject("WScript.Shell")
  2. oReg.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\miexe", "C:\WINDOWS\miexe.exe","REG_SZ"
  3.  
  4.  


Salu2

Cyclop

173
Visual Basic 6.0 e inferiores / Re: Controlar Conexion A Internet
« en: Lunes 6 de Septiembre de 2004, 20:28 »
Esto encontre en ALLAPI

Código: Text
  1. Private Const INTERNET_CONNECTION_CONFIGURED = &H40
  2. Private Const INTERNET_CONNECTION_LAN = &H2
  3. Private Const INTERNET_CONNECTION_MODEM = &H1
  4. Private Const INTERNET_CONNECTION_OFFLINE = &H20
  5. Private Const INTERNET_CONNECTION_PROXY = &H4
  6. Private Const INTERNET_RAS_INSTALLED = &H10
  7. Private Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal dwReserved As Long) As Long
  8. Private Sub Form_Load()
  9.     'KPD-Team 2001
  10.     'URL: http://www.allapi.net/
  11.     'E-Mail: KPDTeam@Allapi.net
  12.     Dim Ret As Long
  13.     Me.AutoRedraw = True
  14.     'retrieve the connection status
  15.     InternetGetConnectedState Ret, 0&
  16.     'show the result
  17.     If (Ret And INTERNET_CONNECTION_CONFIGURED) = INTERNET_CONNECTION_CONFIGURED Then Me.Print "Local system has a valid connection to the Internet, but it may or may not be currently connected."
  18.     If (Ret And INTERNET_CONNECTION_LAN) = INTERNET_CONNECTION_LAN Then Me.Print "Local system uses a local area network to connect to the Internet."
  19.     If (Ret And INTERNET_CONNECTION_MODEM) = INTERNET_CONNECTION_MODEM Then Me.Print "Local system uses a modem to connect to the Internet."
  20.     If (Ret And INTERNET_CONNECTION_OFFLINE) = INTERNET_CONNECTION_OFFLINE Then Me.Print "Local system is in offline mode."
  21.     If (Ret And INTERNET_CONNECTION_PROXY) = INTERNET_CONNECTION_PROXY Then Me.Print "Local system uses a proxy server to connect to the Internet."
  22.     If (Ret And INTERNET_RAS_INSTALLED) = INTERNET_RAS_INSTALLED Then Me.Print "Local system has RAS installed."
  23. End Sub
  24.  
  25.  

Salu2

174
Visual Basic 6.0 e inferiores / Re: Uso De Variable Byte
« en: Lunes 6 de Septiembre de 2004, 20:20 »
Las variables de tipo Byte se almacenan como numeros de 8 bits (1 byte) sin signo con valores comprendidos entre 0 y 255.

El tipo de datos Byte es útil para almacenar datos binarios.


Dim nVar as Byte

Cuando abro un archivo tipo binario


Código: Text
  1. Dim aBuffer() as Byte
  2.  
  3. Open "Prueba.exe" For Binary Acces Read As #1
  4. Get #1,, aBuffer
  5. Close #1
  6.  
  7. ' Primer caracter del archivo
  8. Msgbox Chr(aBuffer(1))
  9.  
  10.  


Salu2

Cyclop

175
Visual Basic 6.0 e inferiores / Re: Cajas
« en: Viernes 3 de Septiembre de 2004, 22:01 »
Encontre un programa que hace lo que necesito, bueno para todos los que estan interesados

http://www.virtual-cover-creator.net

Salu2

Cyclop

Páginas: 1 ... 5 6 [7] 8 9 ... 13