Ver Mensaje Individual
  #62 (permalink)  
Antiguo 13/09/2008, 22:14
Avatar de moradazo
moradazo
 
Fecha de Ingreso: julio-2008
Ubicación: [email protected]
Mensajes: 355
Antigüedad: 16 años, 10 meses
Puntos: 2
Respuesta: Visual Basic 2005: Usar SendMessage.

Hola seba123neo gracias por tu respuesta.

Mira hice algo así:

Código PHP:
'ClinCheck Comments es el nombre de la ventana'
        
hwnd1 FindWindow(vbNullString"ClinCheck")

'Este "Edit" es el textbox de la ventana ClinCheck, supongo'
        
hwnd2 FindWindowEx(hwnd10"Edit"vbNullString)

'Cuando sigue esta línea, me da un error'
        
SendMessageSTRING(hwnd2WM_SETTEXT0"texto"
El error es el siguiente: A call to PInvoke function 'Send Text!Send_Text.Form1::SendMessageSTRING' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

Me guié de un código que creo tu pusiste en esta dirección: http://www.canalvisualbasic.net/foru....asp?TID=34737

A ver si ando equivocado en algo o que puede ser?