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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 ... 74
291  Programación / Programación Visual Basic / Re: Lineas "al aire" en: 23 Enero 2010, 05:35 am
@░▒▓BlackZeroҖ▓▒░
esta bueno el ejemplo, te voy a tirar una sugerencia como ya me lo hicieron a mi en mi foro

al pasarle un lapiz a un hdc hay que eliminar el antiguo lapiz, esto es tanto como para un brocha, o un bitmap.

DeleteObject SelectObject(hdc, hPen)

y luego por ulitmo eliminas tu lapiz creado

DeleteObject hPen

292  Programación / Programación Visual Basic / Re: Alguien sabe Como Crear ese Efecto Blanco Y negro .... en: 14 Enero 2010, 04:05 am
a una cosa muy importate Compilalo!! sino es muy lento.

Saludos.
293  Programación / Programación Visual Basic / Re: Alguien sabe Como Crear ese Efecto Blanco Y negro .... en: 14 Enero 2010, 04:03 am
Hola para el efecto de vista si podrias usar SetLayeredWindowAttributes pero para el de apagado del xp te paso un metodo convirtiendo la pantalla a escala de grices.

Agrega a un formulario: Timer1, Picture1, Command1

Código
  1. Option Explicit
  2. '*-------------------------------------*
  3. 'Autor:     Leandro Ascierto
  4. 'web:       www.leandroascierto.com.ar
  5. 'Date:      13/01/2009
  6. 'Referncia  ApiGuide
  7. 'Requimientos Timer1, Picture1, Command1
  8. '*-------------------------------------*
  9. Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
  10. Private Declare Function CreateDIBSection Lib "gdi32" (ByVal hdc As Long, pBitmapInfo As BITMAPINFO, ByVal un As Long, ByVal lplpVoid As Long, ByVal handle As Long, ByVal dw As Long) As Long
  11. Private Declare Function GetDIBits Lib "gdi32" (ByVal aHDC As Long, ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long, lpBits As Any, lpBI As BITMAPINFO, ByVal wUsage As Long) As Long
  12. Private Declare Function SetDIBitsToDevice Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal dx As Long, ByVal dy As Long, ByVal SrcX As Long, ByVal SrcY As Long, ByVal Scan As Long, ByVal NumScans As Long, Bits As Any, BitsInfo As BITMAPINFO, ByVal wUsage As Long) As Long
  13. Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
  14. Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
  15. Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
  16. Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
  17. Private Declare Function GetDC Lib "User32" (ByVal hWnd As Long) As Long
  18. Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
  19.  
  20. Private Type BITMAPINFOHEADER
  21.    biSize As Long
  22.    biWidth As Long
  23.    biHeight As Long
  24.    biPlanes As Integer
  25.    biBitCount As Integer
  26.    biCompression As Long
  27.    biSizeImage As Long
  28.    biXPelsPerMeter As Long
  29.    biYPelsPerMeter As Long
  30.    biClrUsed As Long
  31.    biClrImportant As Long
  32. End Type
  33.  
  34. Private Type RGBQUAD
  35.    rgbBlue As Byte
  36.    rgbGreen As Byte
  37.    rgbRed As Byte
  38.    rgbReserved As Byte
  39. End Type
  40.  
  41. Private Type BITMAPINFO
  42.    bmiHeader As BITMAPINFOHEADER
  43.    bmiColors As RGBQUAD
  44. End Type
  45.  
  46. Private Const BI_RGB = 0&
  47. Private Const DIB_RGB_COLORS = 0
  48.  
  49. Private Const HWND_TOPMOST      As Long = -1
  50. Private Const SWP_NOACTIVATE    As Long = &H10
  51. Private Const SWP_SHOWWINDOW    As Long = &H40
  52.  
  53. Private bi24BitInfo     As BITMAPINFO
  54. Private hBitmap         As Long
  55. Private lHdc            As Long
  56. Private bBytes()        As Byte
  57. Dim lCunter             As Long
  58.  
  59. Private Sub Command1_Click()
  60.    Unload Me
  61. End Sub
  62.  
  63. Private Sub Form_Load()
  64.    Dim TempDC As Long
  65.  
  66.    Me.BorderStyle = 0
  67.    Me.Caption = ""
  68.    Me.WindowState = vbMaximized
  69.    Me.AutoRedraw = True
  70.    Command1.Caption = "Cancelar"
  71.  
  72.    TempDC = GetDC(0)
  73.  
  74.    With bi24BitInfo.bmiHeader
  75.        .biBitCount = 24
  76.        .biCompression = BI_RGB
  77.        .biPlanes = 1
  78.        .biSize = Len(bi24BitInfo.bmiHeader)
  79.        .biWidth = Screen.Width / Screen.TwipsPerPixelX
  80.        .biHeight = Screen.Height / Screen.TwipsPerPixelY
  81.    End With
  82.  
  83.    ReDim bBytes(1 To bi24BitInfo.bmiHeader.biWidth * bi24BitInfo.bmiHeader.biHeight * 3) As Byte
  84.  
  85.    lHdc = CreateCompatibleDC(0)
  86.    hBitmap = CreateDIBSection(lHdc, bi24BitInfo, DIB_RGB_COLORS, ByVal 0&, ByVal 0&, ByVal 0&)
  87.  
  88.    SelectObject lHdc, hBitmap
  89.  
  90.    BitBlt lHdc, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, GetDC(0), 0, 0, vbSrcCopy
  91.    GetDIBits lHdc, hBitmap, 0, bi24BitInfo.bmiHeader.biHeight, bBytes(1), bi24BitInfo, DIB_RGB_COLORS
  92.    BitBlt Me.hdc, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, TempDC, 0, 0, vbSrcCopy
  93.  
  94.  
  95.  
  96.    SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, SWP_NOACTIVATE Or SWP_SHOWWINDOW
  97.  
  98.    Picture1.Move (Me.ScaleWidth / 2) - (Picture1.ScaleWidth / 2), (Me.ScaleHeight / 2) - (Picture1.ScaleHeight / 2)
  99.  
  100.    lCunter = 0
  101.    Timer1.Interval = 150
  102.  
  103.    DeleteDC TempDC
  104. End Sub
  105.  
  106. Private Sub Form_Unload(Cancel As Integer)
  107.    DeleteDC lHdc
  108.    DeleteObject hBitmap
  109. End Sub
  110.  
  111. Private Sub Timer1_Timer()
  112.    Dim Cnt As Long, lGray As Long
  113.    Dim lR As Long, lG As Long, lB As Long
  114.  
  115.    lCunter = lCunter + 1
  116.  
  117.    If lCunter > 60 < 65 Then
  118.        For Cnt = LBound(bBytes) To UBound(bBytes) - 3 Step 3
  119.            lB = bBytes(Cnt)
  120.            lG = bBytes(Cnt + 1)
  121.            lR = bBytes(Cnt + 2)
  122.            lGray = (222 * lR + 707 * lG + 71 * lB) / 1000
  123.            bBytes(Cnt) = (lB * 4 + lGray) / 5
  124.            bBytes(Cnt + 1) = (lG * 4 + lGray) / 5
  125.            bBytes(Cnt + 2) = (lR * 4 + lGray) / 5
  126.        Next Cnt
  127.  
  128.        SetDIBitsToDevice Me.hdc, 0, 0, bi24BitInfo.bmiHeader.biWidth, bi24BitInfo.bmiHeader.biHeight, 0, 0, 0, _
  129.            bi24BitInfo.bmiHeader.biHeight, bBytes(1), bi24BitInfo, DIB_RGB_COLORS
  130.  
  131.        Me.Refresh
  132.    End If
  133.  
  134.    If lCunter = 71 Then Timer1.Interval = 0
  135. End Sub
  136.  

Saludos.
294  Programación / Programación Visual Basic / Re: [Duda] Capturar imagen al hacer click en: 11 Enero 2010, 22:57 pm
Che Leandro, porque inicializas GDI+ cada vez que vas a guardar la imagen en vez de hacerlo en StartMouseCapture y terminarlo en StopMouseCapture? es para que no explote?
Exacto lo inicialize dentro de la funcion para que no crashe en el IDE pero bueno obiamente seria mejor ponerlo dentro de StartMouseCapture  o bien usar el GDIplusIDEsafe de LaVolpe pero bueno sale con fritas.

Leandro, mis respetos, está buenisimo el modulo. Pero sabes alguna forma de que en las capturas se vea el mouse? o se marque algún cuadrado?
Saludos! ;D
podes poner estas dos apis
Código:
Private Declare Function GetCursor Lib "user32" () As Long
Private Declare Function DrawIcon Lib "user32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long


y despues justo de la llamada al api BitBlt pones
Código:
DrawIcon lHdc, (m_Width / 2), (m_Height / 2), GetCursor

pero te puede llegar a tapar la letra y no te serviria de nada la captura, mejor seria poner un puntito con SetPixel

Saludos.
295  Programación / Programación Visual Basic / Re: Tomar screens en jpg al pulsar con raton en: 11 Enero 2010, 04:55 am
mira este hilo
http://foro.elhacker.net/programacion_vb/duda_capturar_imagen_al_hacer_click-t280686.0.html;msg1383074#msg1383074

Saludos.
296  Programación / Programación Visual Basic / Re: [Duda] Capturar imagen al hacer click en: 11 Enero 2010, 04:46 am
hola no se si es lo que yo entiendo vos queres hacer algo asi como un keyloger pero capturando las imagenes al hacer click en algun teclado virtual

te pongo un ejemplo haciendo hook al mouse y guarda las capturas en .jpg la carpeta que le indiques

dentro de un Modulo Bas
Código
  1. Option Explicit
  2. '--------------------------------------------
  3. 'Autor: Leandro Ascierto
  4. 'Web: www.leandroascierto.com.ar
  5. 'Date: 11/01/2010
  6. '--------------------------------------------
  7. Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
  8. Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
  9. Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
  10. Private Declare Function GdiplusStartup Lib "gdiplus" (token As Long, inputbuf As GDIPlusStartupInput, Optional ByVal outputbuf As Long = 0) As Long
  11. Private Declare Function GdipLoadImageFromFile Lib "GdiPlus.dll" (ByVal mFilename As Long, ByRef mImage As Long) As Long
  12. Private Declare Function GdipDisposeImage Lib "gdiplus" (ByVal Image As Long) As Long
  13. Private Declare Function GdipCreateBitmapFromHBITMAP Lib "gdiplus" (ByVal hbm As Long, ByVal hpal As Long, ByRef BITMAP As Long) As Long
  14. Private Declare Sub GdiplusShutdown Lib "gdiplus" (ByVal token As Long)
  15. Private Declare Function GdipSaveImageToFile Lib "gdiplus" (ByVal Image As Long, ByVal FileName As Long, ByRef ClsidEncoder As GUID, ByRef EncoderParams As Any) As Long
  16. Private Declare Function CLSIDFromString Lib "ole32" (ByVal str As Long, id As GUID) As Long
  17. Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
  18. Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
  19. Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
  20. Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
  21. Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
  22. Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
  23. Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
  24. Private Declare Function CallNextHookEx Lib "user32" (ByVal hHook As Long, ByVal ncode As Long, ByVal wParam As Long, lParam As Any) As Long
  25. Private Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
  26. Private Declare Function UnhookWindowsHookEx Lib "user32" (ByVal hHook As Long) As Long
  27. Private Declare Function GetDesktopWindow Lib "user32.dll" () As Long
  28.  
  29. Private Const ImageCodecJPG = "{557CF401-1A04-11D3-9A73-0000F81EF32E}"
  30. Private Const EncoderQuality = "{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}"
  31. Private Const EncoderParameterValueTypeLong = 4
  32.  
  33. Private Const WH_MOUSE_LL       As Long = 14
  34. Private Const WM_LBUTTONUP      As Long = &H202
  35. Private Const CAPTUREBLT        As Long = &H40000000
  36. Private Const SRCCOPY           As Long = &HCC0020
  37.  
  38. Private Type CWPSTRUCT
  39.    lParam As Long
  40.    wParam As Long
  41.    message As Long
  42.    hwnd As Long
  43. End Type
  44.  
  45. Private Type GUID
  46.    Data1           As Long
  47.    Data2           As Integer
  48.    Data3           As Integer
  49.    Data4(0 To 7)   As Byte
  50. End Type
  51.  
  52. Private Type EncoderParameter
  53.    GUID            As GUID
  54.    NumberOfValues  As Long
  55.    type            As Long
  56.    Value           As Long
  57. End Type
  58.  
  59. Private Type EncoderParameters
  60.    Count           As Long
  61.    Parameter(15)   As EncoderParameter
  62. End Type
  63.  
  64. Private Type GDIPlusStartupInput
  65.    GdiPlusVersion           As Long
  66.    DebugEventCallback       As Long
  67.    SuppressBackgroundThread As Long
  68.    SuppressExternalCodecs   As Long
  69. End Type
  70.  
  71. Private hHook As Long
  72. Private m_Width As Long
  73. Private m_Height As Long
  74. Private m_DestPath As String
  75. Private lCounter As Long
  76. Private m_JpgQuality As Long
  77. Private lHdc As Long
  78. Private hBitmap As Long
  79. Private DeskDC As Long
  80.  
  81. Public Function StartMouseCapture(DestPath As String, Optional JpgQuality As Long = 50, Optional Size As Long = 64) As Boolean
  82.    m_DestPath = IIf(Right(DestPath, 1) <> "\", DestPath & "\", DestPath)
  83.    If Size < 10 Then Size = 10
  84.    m_Width = Size
  85.    m_Height = Size
  86.    m_JpgQuality = JpgQuality
  87.    If hHook Then Exit Function
  88.    If IsGdiPlusInstaled() Then
  89.        DeskDC = GetDC(GetDesktopWindow)
  90.        lHdc = CreateCompatibleDC(DeskDC)
  91.        hBitmap = CreateCompatibleBitmap(DeskDC, m_Width, m_Height)
  92.        DeleteObject SelectObject(lHdc, hBitmap)
  93.        hHook = SetWindowsHookEx(WH_MOUSE_LL, AddressOf MouseProcedure, App.hInstance, 0)
  94.        StartMouseCapture = True
  95.    End If
  96. End Function
  97.  
  98. Public Sub StopMouseCapture()
  99.    UnhookWindowsHookEx hHook
  100.    DeleteDC lHdc
  101.    DeleteDC DeskDC
  102.    DeleteObject hBitmap
  103.    hHook = 0
  104. End Sub
  105.  
  106. Private Function SaveImageToJpg(ByVal SrchBitmap As Long, ByVal DestPath As String, Optional ByVal JPG_Quality As Long = 85) As Boolean
  107.  
  108.    On Error Resume Next
  109.    Dim GDIsi As GDIPlusStartupInput, gToken As Long, hBitmap As Long
  110.    Dim tEncoder  As GUID
  111.    Dim tParams     As EncoderParameters
  112.  
  113.    If JPG_Quality > 100 Then JPG_Quality = 100
  114.    If JPG_Quality < 0 Then JPG_Quality = 0
  115.  
  116.    CLSIDFromString StrPtr(ImageCodecJPG), tEncoder
  117.  
  118.    With tParams
  119.        .Count = 1
  120.        .Parameter(0).NumberOfValues = 1
  121.        .Parameter(0).type = EncoderParameterValueTypeLong
  122.        .Parameter(0).Value = VarPtr(JPG_Quality)
  123.        CLSIDFromString StrPtr(EncoderQuality), .Parameter(0).GUID
  124.    End With
  125.  
  126.    GDIsi.GdiPlusVersion = 1&
  127.  
  128.    GdiplusStartup gToken, GDIsi
  129.  
  130.    If gToken Then
  131.  
  132.        If GdipCreateBitmapFromHBITMAP(SrchBitmap, 0, hBitmap) = 0 Then
  133.  
  134.            If GdipSaveImageToFile(hBitmap, StrPtr(DestPath), tEncoder, tParams) = 0 Then
  135.                SaveImageToJpg = True
  136.            End If
  137.  
  138.            GdipDisposeImage hBitmap
  139.  
  140.        End If
  141.  
  142.        GdiplusShutdown gToken
  143.    End If
  144.  
  145. End Function
  146.  
  147. Public Function IsGdiPlusInstaled() As Boolean
  148.    Dim hLib As Long
  149.  
  150.    hLib = LoadLibrary("gdiplus.dll")
  151.    If hLib Then
  152.        If GetProcAddress(hLib, "GdiplusStartup") Then
  153.            IsGdiPlusInstaled = True
  154.        End If
  155.        FreeLibrary hLib
  156.    End If
  157.  
  158. End Function
  159.  
  160. Public Function MouseProcedure(ByVal idHook As Long, ByVal wParam As Long, lParam As CWPSTRUCT) As Long
  161.  
  162.    MouseProcedure = CallNextHookEx(hHook, idHook, wParam, ByVal lParam)
  163.  
  164.    If wParam = WM_LBUTTONUP Then
  165.        BitBlt lHdc, 0, 0, m_Width, m_Height, DeskDC, lParam.lParam - (m_Width / 2), lParam.wParam - (m_Height / 2), SRCCOPY Or CAPTUREBLT
  166.        SaveImageToJpg hBitmap, m_DestPath & lCounter & ".jpg", m_JpgQuality
  167.        lCounter = lCounter + 1
  168.    End If
  169.  
  170. End Function
  171.  


y en un formulario para probar

Código
  1. Private Sub Form_Load()
  2.    StartMouseCapture "C:\", 20, 50
  3. End Sub
  4.  
  5. Private Sub Form_Unload(Cancel As Integer)
  6.    StopMouseCapture
  7. End Sub
  8.  

Saludos.


297  Programación / Programación Visual Basic / [Source] Reniciar la aplicacion ante un Error en: 28 Diciembre 2009, 04:35 am
Este es un modulo bas para Reiniciar la aplicación si es que aparece un error y no fue controlado  (No errores de sistemas esos que aparece el maldito boton"No Enviar") sino los comunes de vb

Código:
Option Explicit
'Autor: Leandro Ascierto
'Web:   www.leandroascierto.com.ar
'Date:  28/12/2009
Private Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
Private Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
Private Declare Function CreateWindowEx Lib "user32.dll" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, ByRef lpParam As Any) As Long
Private Declare Function DestroyWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
Private Declare Function SetProp Lib "user32.dll" Alias "SetPropA" (ByVal hwnd As Long, ByVal lpString As String, ByVal hData As Long) As Long
Private Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As Long) As Long
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Declare Sub FatalExit Lib "kernel32" (ByVal code As Long)

Dim hWinStatic As Long
Dim AppPath As String
Dim LastError As Long

Private Function CallSomeFunction()
    'No borrar esta linea
End Function

Public Sub StarProtect()
    hWinStatic = CreateWindowEx(0, "Static", "WindowControlerCrash", 0, 0, 0, 0, 0, 0, 0, 0, 0&)
    AppPath = GetAppPath
    SetTimer hWinStatic, 0, 100, AddressOf TimerProc
End Sub

Public Sub EndProtect()
    KillTimer hWinStatic, 0
    DestroyWindow hWinStatic
End Sub

Sub TimerProc(ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long)
    Dim Ret As String
   
    If Err.Number = 40040 Then
        ShellExecute hWinStatic, vbNullString, AppPath, LastError, vbNullString, 1
        FatalExit 1
    Else
        LastError = Err.Number
        Ret = CallSomeFunction
    End If
   
End Sub

Private Function GetAppPath() As String
    Dim ModuleName As String
    Dim Ret As Long
    ModuleName = String$(255, Chr$(0))
    Ret = GetModuleFileName(App.hInstance, ModuleName, 255)
    GetAppPath = Left$(ModuleName, Ret)
End Function

Para probarlo en un formulario con Tres botones

Código:
Option Explicit

Private Sub Form_Load()
    If Command$ <> "" Then Me.Caption = "Aplicación Reinciada por error: " & Command$
    StarProtect 'comienza la protección
End Sub

Private Sub Form_Unload(Cancel As Integer)
    EndProtect 'Detiene la protección
End Sub


Private Sub Command1_Click()
    MsgBox 1 / 0 'Error Divición por cero
End Sub

Private Sub Command2_Click()
    Dim i As Integer
    i = 8000000000000# 'Error Desvordamiento
End Sub

Private Sub Command3_Click()
    Dim c As Date
    c = "hola" 'Error no coinciden los tipos
End Sub

Lo compilan y verán que al producir un error la aplicacion se reinicia.

Saludos.
298  Programación / Programación Visual Basic / Re: [DUDA] abrir ventana de banner en otro WebBrowser en: 16 Diciembre 2009, 00:20 am
hola mira este link creo que es lo que buscas

http://www.recursosvisualbasic.com.ar/htm/trucos-codigofuente-visual-basic/93.htm

Saludos.
299  Programación / Programación Visual Basic / Re: Pintar sobre DirectX ? en: 11 Diciembre 2009, 23:16 pm
podes usar apis como  GetDC, BitBlt, DrawText , pero bueno tenes que tener conosimiento de apis.

Saludos.
300  Programación / Programación Visual Basic / Re: Funciones de Apis no me funcionan en una dll en: 8 Diciembre 2009, 02:52 am
que es lo que no te funciona?.

SendMessage ret, WM_SYSCOMMAND, SC_CLOSE, ByVal 0

cierra la ventana pero no mata el proceso si la ventana no es la unica en ejecucion.

seguro que este es el nombre de clase ThunderRT6FormDC mira que si la aplicacion esta en ide es otro el classname.

Saludos.
Páginas: 1 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 ... 74
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines