See Mattias' comment. There's no way that using "^" will yield the same
results.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
Instant Python: C#/VB to Python converter
"Vagabond Software" wrote:
> "Tom Shelton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > On May 3, 9:18 am, "Vagabond Software" <vagabondsw...@-X-gmail.com>
> > wrote:
> >> We're talking 2005 for both languages. Left, Top, Right, Bottom, Height,
> >> and
> >> Width are Integers.
> >>
> >> C# version:
> >> public override int GetHashCode()
> >> {
> >> return Left ^ ((Top << 13) | (Top >> 0x13))
> >> ^ ((Width << 0x1a) | (Width >> 6))
> >> ^ ((Height << 7) | (Height >> 0x19));
> >> }
> >>
> >> My VB2005 version:
> >> Public Overrides Function GetHashCode() As Integer
> >> Return Left ^ ((Top << 13) OR (Top >> 0x13)) _
> >> ^ ((Width << 0x1a) OR (Width >> 6)) _
> >> ^ ((Height << 7) OR (Height >> 0x19))
> >> End Function
> >>
> >> I'm seeing a couple of errors, but I think they are all related to the
> >> area
> >> around 0x13. Any help would be greatly appreciated.
> >>
> >> Carl
> >
> >
> > change the 0x to &H.
> >
> > --
> > Tom Shelton
> >
>
> Thanks Time, that did the trick.
>
> Carl
>
>
>