Bonjour,
La fonction GetWindowText() va bien en C, mais me cause des misères en VB. Dans le code :
<DEBUT CODE>
Public Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Dim lpString As String
Ret = GetWindowText(ValeurHandle, lpString, 10)
MsgBox lpstring
<FIN CODE>
lpstring reste vide...
Il me semble que lpstring, qui en C est un pointeur, n'est pas équivalent à une variable string.