elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


  Mostrar Mensajes
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 77
211  Programación / Programación Visual Basic / Re: City Builder (SOURCE) en: 18 Febrero 2010, 14:38 pm
A ver cuando lo subo a otro host...! :silbar:
212  Programación / Programación Visual Basic / Re: help! como puedo crear un explorador remoto..con vb6 en: 17 Febrero 2010, 19:37 pm
a ver, fijate en este ejemplo... Hay mucho codigo en la web, solo debes buscar un poco...

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=53120&lngWId=1
213  Programación / Programación Visual Basic / Re: Lectura de cantidades númericas en Vb6 en: 17 Febrero 2010, 16:56 pm
Gracias por el modulo SSCCAANN43, creo que me servirá, estas respuestas no se obtienen el todos lo portales, digo en todos los foros... tal vez algunos users de este foro deberian visitar otros portales, digo foros (me equivoqué otra vez) y corregir algunos Horrores, digo errores... no ?

De nada, la idea es aportar y brindar apoyo a los demas usuarios...!
214  Programación / Programación Visual Basic / Re: Lectura de cantidades númericas en Vb6 en: 17 Febrero 2010, 16:43 pm
Haber si te sirve este es un ocx
Descarga

Megaupload
Descarga


La intención es no usar dependencias.... :silbar:
215  Programación / Programación Visual Basic / Re: Lectura de cantidades númericas en Vb6 en: 17 Febrero 2010, 16:18 pm
Freddy, pega esto en un Modulo Bas...

Código
  1. Function MontoEscrito(Monto As Currency) As String
  2.  
  3. Dim AMT As String
  4. Dim n As String
  5. Dim m As String
  6. Dim k As String
  7. Dim L As String
  8. Dim Rtn_String As String * 120
  9.  
  10. n = "Un    Dos   Tres  CuatroCinco Seis  Siete Ocho  Nueve "
  11. m = "Diez      Once      Doce      Trece     Catorce   Quince    Dieciseis DiecisieteDieciocho Diecinueve"
  12. k = "Veinte   Treinta  Cuarenta CincuentaSesenta  Setenta  Ochenta  Noventa  "
  13. L = "Cien         Doscientos   Trescientos  CuatrocientosQuinientos   Seiscientos  Setecientos  Ochocientos  Novecientos  "
  14.  
  15. If Monto = 0 Then
  16.   MontoEscrito = ""
  17.   Exit Function
  18. End If
  19.  
  20. AMT = Format(Monto, "000000000.00")
  21. Rtn_String = ""
  22.  
  23. If Mid(AMT, 1, 1) = 1 Then     ' 100 - 900 MILLONES
  24.   Rtn_String = Trim(Mid(L, ((Mid(AMT, 1, 1) - 1) * 13) + 1, 13))
  25.   If Trim(Mid(AMT, 1, 3)) > "100" Then
  26.      Rtn_String = Trim(Rtn_String) & "to"
  27.   End If
  28. ElseIf Mid(AMT, 1, 1) > 1 Then
  29.   Rtn_String = Trim(Mid(L, ((Mid(AMT, 1, 1) - 1) * 13) + 1, 13))
  30. End If
  31.  
  32. If Mid(AMT, 2, 1) = 1 Then     ' 10 - 99 MILLONES
  33.   Rtn_String = Trim(Rtn_String) & " " & Mid(m, (Mid(AMT, 3, 1) * 10) + 1, 10)
  34. ElseIf Mid(AMT, 2, 1) > 1 Then
  35.   Rtn_String = Trim(Rtn_String) & " " & Mid(k, ((Mid(AMT, 2, 1) - 2) * 9) + 1, 9)
  36.   If Mid(AMT, 3, 1) > 0 Then
  37.      Rtn_String = Trim(Rtn_String) & " y " & Mid(n, ((Mid(AMT, 3, 1) - 1) * 6) + 1, 6)
  38.   End If
  39. ElseIf Mid(AMT, 3, 1) > 0 Then  ' 1 - 9 MILLONES
  40.   Rtn_String = Trim(Rtn_String) & " " & Mid(n, ((Mid(AMT, 3, 1) - 1) * 6) + 1, 6)
  41. End If
  42.  
  43. If Trim(Rtn_String) <> "" Then
  44.   If Mid(AMT, 1, 3) > 1 Then
  45.      Rtn_String = Trim(Rtn_String) & " Millones "
  46.   Else
  47.      Rtn_String = Trim(Rtn_String) & " Millón "
  48.   End If
  49. End If
  50.  
  51. If Mid(AMT, 4, 1) = 1 Then    ' 100 - 900 MIL
  52.   Rtn_String = Trim(Rtn_String) & " " & Trim(Mid(L, ((Mid(AMT, 4, 1) - 1) * 13) + 1, 13))
  53.   If Mid(AMT, 4, 3) > "100" Then
  54.      Rtn_String = Trim(Rtn_String) & "to"
  55.   End If
  56. ElseIf Mid(AMT, 4, 1) > 1 Then
  57.   Rtn_String = Trim(Rtn_String) & " " & Mid(L, (((Mid(AMT, 4, 1) - 1) * 13) + 1), 13)
  58. End If
  59.  
  60. If Mid(AMT, 5, 1) = 1 Then      ' 10 - 19 Miles
  61.   Rtn_String = Trim(Rtn_String) & " " & Mid(m, (((Mid(AMT, 6, 1)) * 10) + 1), 10)
  62. ElseIf Mid(AMT, 5, 1) > 1 Then  ' 20 - 99 Miles
  63.   Rtn_String = Trim(Rtn_String) & " " & Mid(k, (((Mid(AMT, 5, 1) - 2) * 9) + 1), 9)
  64.   If Mid(AMT, 6, 1) > 0 Then   ' 2? - 9? Miles
  65.      Rtn_String = Trim(Rtn_String) & " y " & Mid(n, (((Mid(AMT, 6, 1) - 1) * 6) + 1), 6)
  66.   End If
  67. ElseIf Mid(AMT, 6, 1) > 0 Then   ' 1  - 9 Miles
  68.   Rtn_String = Trim(Rtn_String) & " " & Mid(n, (((Mid(AMT, 6, 1) - 1) * 6) + 1), 6)
  69. End If
  70.  
  71. If Mid(AMT, 1, 6) <> "000000" And Mid(AMT, 4, 3) <> "000" Then
  72.   Rtn_String = Trim(Rtn_String) & " Mil "
  73. End If
  74.  
  75. If Mid(AMT, 7, 1) = 1 Then
  76.   Rtn_String = Trim(Rtn_String) & " " & Mid(L, (((Mid(AMT, 7, 1) - 1) * 13) + 1), 13)
  77.   If Trim(Mid(AMT, 7, 3)) > "100" Then
  78.      Rtn_String = Trim(Rtn_String) & "to"
  79.   End If
  80. ElseIf Mid(AMT, 7, 1) > 1 Then
  81.   Rtn_String = Trim(Rtn_String) & " " & Mid(L, (((Mid(AMT, 7, 1) - 1) * 13) + 1), 13)
  82. End If
  83.  
  84. If Mid(AMT, 8, 1) = 1 Then
  85.   Rtn_String = Trim(Rtn_String) & " " & Mid(m, ((Mid(AMT, 9, 1) * 10) + 1), 10)
  86. ElseIf Mid(AMT, 8, 1) > 1 Then
  87.   Rtn_String = Trim(Rtn_String) & " " & Mid(k, (((Mid(AMT, 8, 1) - 2) * 9) + 1), 9)
  88.   If Mid(AMT, 9, 1) > 0 Then
  89.      Rtn_String = Trim(Rtn_String) & " y " & Mid(n, (((Mid(AMT, 9, 1) - 1) * 6) + 1), 6)
  90.   End If
  91. ElseIf Mid(AMT, 9, 1) > 0 Then
  92.   Rtn_String = Trim(Rtn_String) & " " & Trim(Mid(n, (((Mid(AMT, 9, 1) - 1) * 6) + 1), 6))
  93.   If Mid(AMT, 9, 1) = 1 Then
  94.      Rtn_String = Trim(Rtn_String) & "o"
  95.   End If
  96. End If
  97.  
  98. If Trim(Rtn_String) <> "" Then
  99.   Rtn_String = Trim(Rtn_String) & " con "
  100. End If
  101.  
  102. Rtn_String = Trim(Rtn_String) & " " & Mid(AMT, 11, 2) & "/100"
  103.  
  104.  
  105. MontoEscrito = Rtn_String
  106. End Function
  107.  

Y para mostrarlo...

Código
  1. Label1.Caption = MontoEscrito(CCur(Text1.Text))
  2.  

Si alguien tiene una mejor manera de hacerlo, pues se aceptan aportes... Saludos
216  Programación / Programación Visual Basic / Re: Tutorial de Visual Basic? en: 12 Febrero 2010, 21:27 pm
Presumo que si acceso a tú foro a insultar a un usuario sere tratado quizas igual o peor que como reaccione yo con la actitud de alex. Soy un hombre serio, de palabra y si tengo que reconocer un error lo reconozco. Pero aqui no he faltado yo. Aqui la falta la cometio tu compañero desde un principio. Y ya es hora de que este tema quede por terminado, el usuario que hizo el post acepto su error y la critica no la tomo destructiva más sin embargo si constructiva.

Si eres moderador en CPH, trata de crear conciencia en tus usuarios.

No tengo más que decir, agradezco a algun moderador que pueda cerrar el tema para no extenderlo.

Felíz tarde a todos!
217  Programación / Programación Visual Basic / Re: [NTDLL] Sacar puntero API - LdrLoadDll() + LdrGetProcedureAddress() en: 10 Febrero 2010, 19:13 pm
Excelentes aportes Karcrack, sin embargo muchos usuarios o la gran mayoría tiene menos de un 50% de conocimientos en VB y les sería util si explicas en tus aportes la finalidad del source que posteas con el fin de que puedan comprender como usarlo.
218  Programación / .NET (C#, VB.NET, ASP) / Re: crear instaladores de visual net en: 10 Febrero 2010, 16:50 pm
Inno Setup, Setup Factory, entre otros... Por cierto esto es VB6.0 no .Net
219  Programación / Programación Visual Basic / Re: Efecto minimizar al Systray con drawanimatedrect, Shellnoty... en: 10 Febrero 2010, 13:28 pm
Heyyy muy bueno, me gusto...! Lo adjunto a mi librería.. :silbar:
220  Programación / Programación Visual Basic / Re: [SOURCE] Parchar MSN2009 MultiSesion =) en: 10 Febrero 2010, 13:21 pm
...

che scan, todo piolo, yo le pondria bordes con regiones, pero bueno no importa. despues, no existe esa ruta de registro (por lo menos en mi pc) y el programa no falla, ni nada. ahora, no se porque no existe.

en fin, debe ser q es win7, u otra version de msn, o que ya esta parcheada, no se.


El problema viene a raiz de que es 64 bits el sistema y esas rutas se mueven virtualmente a otra. El programa funciona igual, ningun cambio. perfecto ;)
saludos

che coco, gracias por revisarlo... Saludos...!
Páginas: 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [22] 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 77
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines