Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I convert this?
Message
From
14/03/2001 07:41:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00484713
Message ID:
00484773
Views:
18
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform