Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I convert this?
Message
De
14/03/2001 07:41:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00484713
Message ID:
00484773
Vues:
19
>>>I'm trying to convert the following line of code over to VB but I can't figure out what to use for the 0x00080000. Anybody know?
>>>
>>>
SetWindowLong hWnd, -20, 0x00080000
>>>
>>>TIA
>>
>>How about 524288?
>
>That's what I thought it should be but I'm getting an overflow error on the SetWindowLong call below.
>
>
Private Declare Function SetWindowLong Lib "Win32Api" (hWnd As Integer, _
>    nIndex As Integer, dwNewLong As Long)
>
>Private Sub Command1_Click()
>    SetWindowLong hWnd, -20, 524288
>end sub
Have you tried
SetWindowLong hWnd, -20, &H00080000

BTW, in VB6, all 3 parameters are defined as Long in the Win32Api.txt file. Are you sure its the last parameter causing the overflow message.
Len Speed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform