G
Guest
how do I do this, what is the easy way to check the version for the prime
number 401? Any help are appreciated.
I get this error " Operator '>' cannot be applied to operands of type
'ushort[]" and 'int' ..."
VERSION version = ((VERSION)Marshal.PtrToStructure(buffptr,typeof(VERSION)));
if (version.VersionNumber > 401)
{
.....
}
the struct for VERSION is:
[StructLayout(LayoutKind.Sequential)]
public struct VERSION
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public char[] VendorID;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public ushort[] VersionNumber;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public char[] VersionTimestamp;
}
number 401? Any help are appreciated.
I get this error " Operator '>' cannot be applied to operands of type
'ushort[]" and 'int' ..."
VERSION version = ((VERSION)Marshal.PtrToStructure(buffptr,typeof(VERSION)));
if (version.VersionNumber > 401)
{
.....
}
the struct for VERSION is:
[StructLayout(LayoutKind.Sequential)]
public struct VERSION
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public char[] VendorID;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public ushort[] VersionNumber;
[MarshalAs(UnmanagedType.ByValArray, SizeConst=32)]
public char[] VersionTimestamp;
}