D
Don Juan
How can this C# function be converted to VB.NET
static IntPtr MakeLParam(int LoWord, int HiWord)
{
return (HiWord << 16) | (LoWord & 0xffff);
}
I'm trying the following but is causing an error : (Operator Or is not
defined for types System.IntPtr and System.IntPtr)
Shared Function MakeLParam(ByVal LoWord As Integer, ByVal HiWord As Integer)
As IntPtr
Dim IntPtrHiWord As New IntPtr(HiWord << 16)
Dim IntPtrLoWord As New IntPtr(LoWord And &HFFFF)
Return IntPtrHiWord Or IntPtrLoWord
End Function
static IntPtr MakeLParam(int LoWord, int HiWord)
{
return (HiWord << 16) | (LoWord & 0xffff);
}
I'm trying the following but is causing an error : (Operator Or is not
defined for types System.IntPtr and System.IntPtr)
Shared Function MakeLParam(ByVal LoWord As Integer, ByVal HiWord As Integer)
As IntPtr
Dim IntPtrHiWord As New IntPtr(HiWord << 16)
Dim IntPtrLoWord As New IntPtr(LoWord And &HFFFF)
Return IntPtrHiWord Or IntPtrLoWord
End Function