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

 

 


Tema destacado: Los 10 CVE más críticos (peligrosos) de 2020


  Mostrar Mensajes
Páginas: 1 ... 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 [54] 55 56 57 58 59 60 61 62 63 64 65
531  Programación / Programación Visual Basic / Re: [EDITADO] Mostrar formulario "sin borde" en la barra de tareas en: 17 Agosto 2008, 01:54 am
Bueno, lo posteó él en el foro.

Saludos.
532  Programación / Programación Visual Basic / Re: [EDITADO] Mostrar formulario "sin borde" en la barra de tareas en: 16 Agosto 2008, 23:04 pm
Ya está, descubrí el problema. Tengo el módulo MakeSkin de ||MadAntrax|| y no muestra el formulario en la barra de tareas. Tendré que buscar otra forma.

Gracias.
533  Programación / Programación Visual Basic / Re: [EDITADO] Mostrar formulario "sin borde" en la barra de tareas en: 16 Agosto 2008, 21:05 pm
Pues no me funciona. No sé por qué, pero nunca me apareció en la barra de tareas cuando no tenía borde. Intentaré buscar la forma de hacerlo por API, como tú dices.

Saludos.
534  Programación / Programación Visual Basic / Re: Mostrar formulario con borde Fixed ToolWindow en barra de tareas en: 16 Agosto 2008, 18:41 pm
Perdón, me equivoqué. Quería decir sin borde en vez de lo que aparece en el título del post. Pues eso, ¿se puede mostrar en la barra de tareas un formulario sin borde?

Perdón por la confusión. Saludos.
535  Programación / Programación Visual Basic / Re: Mostrar formulario con borde Fixed ToolWindow en barra de tareas en: 16 Agosto 2008, 18:30 pm
Muchas gracias LeandroA, ahora me funciona perfectamente.

Saludos.
536  Programación / Programación Visual Basic / [EDITADO] Mostrar formulario "sin borde" en la barra de tareas en: 16 Agosto 2008, 14:51 pm
Hola. Quisiera saber como hacer que un formulario con borde Fixed ToolWindow aparezca en la barra de tareas, ya que lo intento y no aparece.

Gracias de antemano.
537  Programación / Programación Visual Basic / Re: Reproducir Videos AVI en Picture desde Archivos .RES en: 16 Agosto 2008, 00:56 am
Si te refieres con cortar a que se para, a mí no me pasa. Los tres vídeos funcionan correctamente.

Saludos.
538  Programación / Programación Visual Basic / Re: Extraer sonidos de una DLL en: 16 Agosto 2008, 00:49 am
Bueno, intentando conseguir algún resultado, hice esto:

Código
  1. Private Const SND_SYNC = &H0              '  play synchronously (default)
  2. Private Const SND_ASYNC = &H1             '  play asynchronously
  3. Private Const SND_NODEFAULT = &H2         '  silence not default, if sound not found
  4. Private Const SND_MEMORY = &H4            '  lpszSoundName points to a memory file
  5. Private Const SND_ALIAS = &H10000         '  name is a WIN.INI [sounds] entry
  6. Private Const SND_FILENAME = &H20000      '  name is a file name
  7. Private Const SND_RESOURCE = &H40004      '  name is a resource name or atom
  8. Private Const SND_ALIAS_ID = &H110000     '  name is a WIN.INI [sounds] entry identifier
  9. Private Const SND_ALIAS_START = 0         '  must be > 4096 to keep strings in same section of resource file
  10. Private Const SND_LOOP = &H8              '  loop the sound until next sndPlaySound
  11. Private Const SND_NOSTOP = &H10           '  don't stop any currently playing sound
  12. Private Const SND_VALID = &H1F            '  valid flags          / ;Internal /
  13. Private Const SND_NOWAIT = &H2000         '  don't wait if the driver is busy
  14. Private Const SND_VALIDFLAGS = &H17201F   '  Set of valid flag bits.  Anything outside this range will raise an error
  15. Private Const SND_RESERVED = &HFF000000   '  In particular these flags are reserved
  16. Private Const SND_TYPE_MASK = &H170007
  17.  
  18. Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
  19. Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
  20. Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, _
  21. ByVal dwFlags As Long) As Long
  22.  
  23. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  24. '    //CargarSonidoDLL//
  25. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  26. '   Cargar un sonido de una DLL.
  27. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  28. Public Sub CargarSonidoDLL(sDLL As String, ByVal lID As Long)
  29. Const flags = SND_RESOURCE Or SND_ASYNC Or SND_NODEFAULT
  30. Dim hInst As Long
  31. Dim SonidoCargado As Variant
  32. hInst = LoadLibrary(sDLL)
  33. If hInst <> 0 Then
  34.    SonidoCargado = PlaySound(CStr("#" & lID), hInst, flags)
  35. End If
  36. DoEvents
  37. FreeLibrary (hInst)
  38. hInst = 0
  39. End Sub
  40.  
Así que el problema está solucionado.

Saludos.
539  Programación / Programación Visual Basic / [SOLUCIONADO] Extraer sonidos de una DLL en: 15 Agosto 2008, 22:56 pm
Hola. Quisiera saber como extraer sonidos de una DLL. Tengo un código que permite extraer imágenes, pero lo que necesito es hacerlo con sonidos.

Código
  1. Type GUID
  2.     Data1 As Long
  3.     Data2 As Integer
  4.     Data3 As Integer
  5.     Data4(7) As Byte
  6. End Type
  7.  
  8. Type PicBmp
  9.     Size As Long
  10.     Type As Long
  11.     hBmp As Long
  12.     hPal As Long
  13.     Reserved As Long
  14. End Type
  15.  
  16.  
  17. Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc As PicBmp, RefIID As GUID, ByVal fPictureOwnHandle As Long, _
  18. IPic As IPicture) As Long
  19. Declare Function LoadBitmap Lib "user32" Alias "LoadBitmapA" (ByVal hInstance As Long, ByVal lpBitmapID As Long) As Long
  20. Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
  21. Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
  22. Declare Function FreeLibrary Lib "kernel32" _
  23.               (ByVal hLibModule As Long) As Long
  24. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  25. '    //CargarImagenDLL//
  26. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  27. '   Cargar una imagen de una DLL.
  28. '#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
  29. Public Function CargarImagenDLL(sDLL As String, ByVal lID As Long) As Picture
  30. Dim hInst As Long
  31. Dim hBmp  As Long
  32. Dim Pic As PicBmp
  33.  
  34. Dim IPic As IPicture
  35. Dim IID_IDispatch As GUID
  36. Dim lRC As Long
  37.  
  38.  
  39. hInst = LoadLibrary(sDLL)
  40. If hInst <> 0 Then
  41.    hBmp = LoadBitmap(hInst, lID)
  42.    If hBmp <> 0 Then
  43.        IID_IDispatch.Data1 = &H20400
  44.        IID_IDispatch.Data4(0) = &HC0
  45.        IID_IDispatch.Data4(7) = &H46
  46.        Pic.Size = Len(Pic)
  47.        Pic.Type = vbPicTypeBitmap
  48.        Pic.hBmp = hBmp
  49.        Pic.hPal = 0
  50.        lRC = OleCreatePictureIndirect(Pic, IID_IDispatch, 1, IPic)
  51.        If lRC = 0 Then
  52.            Set CargarImagenDLL = IPic
  53.            Set IPic = Nothing
  54.        Else
  55.            Call DeleteObject(hBmp)
  56.        End If
  57.    End If
  58.    FreeLibrary (hInst)
  59.    hInst = 0
  60. End If
  61. End Function
  62.  

Gracias de antemano.
540  Programación / Programación Visual Basic / Re: ayuda al morir el poroceso en: 12 Agosto 2008, 21:41 pm
Pues eso. Si quieres que aparezca un MsgBox sería:

Código
  1. Private Sub Form_Unload()
  2. MsgBox "FIN"
  3. End Sub
  4.  

Y si quieres controlar el cierre de la aplicación, utilizas el evento QueryUnload del form.

Saludos.
Páginas: 1 ... 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 [54] 55 56 57 58 59 60 61 62 63 64 65
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines