Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

int64

Status
Not open for further replies.

amzi

Programmer
Sep 19, 2001
2
US
If you give visual c++ an int64 value and right shift it 52
it all disappears.
 
the __int64 value has .high and .low (or upper lower i cant remember) members. to do what you want you want to

__int64 value;

value.low = value.high;
value.high = 0;
value.low = value.low>>(52-32);


Matt
 
OK! it's me!
Visual C++ took 52 in hex mode
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top