Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to IntPtr
Message
From
07/07/2003 04:22:26
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00807350
Message ID:
00807360
Views:
15
This message has been marked as the solution to the initial question of the thread.
Use IntPtr constructor:
Dim SomeInteger As Integer = 2000000000  'Not Long!!!
Dim FormPointer As IntPtr = New IntPtr(SomeInteger)
Caution: in the .NET framework the old Long data type is now Integer (32-bit). In .NET framework Long data type is 64-bit, i.e. in all API function declarations you should use Integer instead of Long. For example:
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _
ByVal hwnd As Integer, ByVal nIndex As Integer) As Integer

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform