Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the proper call?
Message
General information
Forum:
Visual C++
Category:
ActiveX
Miscellaneous
Thread ID:
00805580
Message ID:
00807765
Views:
46
[snip]

Alexander, thank you for your help with this roadblock issue.

The answer to this is in the declaration of the call. In VB.NET (VB6 Longs are not VB.NET Longs) I believe the bitmask was skewed due to the incorrect casting of longs in .NET. Integer or better yet intPtr should be used. Plamen Ivanov shows a concise method in VB.NET to cast to IntPtr in this post:

The call should looks like so:
    <DllImport("User32.dll", EntryPoint:="GetWindowLong")> _
    Friend Shared Function GetWindowLong(ByVal HWND As IntPtr, ByVal Index As Integer) As Integer
    End Function
Thanks again to everyone who helped me on this,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform