J
Joseph Byrns
I am going through the managed GPS example and trying to convert all the
bits to VB.NET but I have a couple of translation problems if anyone can
advise:
for (int viewIndex = 0; viewIndex < inViewSatellites.Length && found ==
null; viewIndex++)
(no idea what the && found == null bit does)
public bool SatellitesInViewValid
{
get { return (dwValidFields & GPS_VALID_SATELLITES_IN_VIEW) != 0; }
}
I have translated this as:
Public ReadOnly Property SatellitesInViewValid() As Boolean
Get
Return CType((dwValidFields And GPS_VALID_SATELLITES_IN_VIEW),
Boolean)
End Get
End Property
but don't understand what the !=0 is doing????
And finally in a structure there is a property declared as:
public int this[int value]
How does this translate??
Thanks.
bits to VB.NET but I have a couple of translation problems if anyone can
advise:
for (int viewIndex = 0; viewIndex < inViewSatellites.Length && found ==
null; viewIndex++)
(no idea what the && found == null bit does)
public bool SatellitesInViewValid
{
get { return (dwValidFields & GPS_VALID_SATELLITES_IN_VIEW) != 0; }
}
I have translated this as:
Public ReadOnly Property SatellitesInViewValid() As Boolean
Get
Return CType((dwValidFields And GPS_VALID_SATELLITES_IN_VIEW),
Boolean)
End Get
End Property
but don't understand what the !=0 is doing????
And finally in a structure there is a property declared as:
public int this[int value]
How does this translate??
Thanks.