I need an eVC++ data type equivalent to __int64

675 Views Asked by At

Is there a data type in eVC++ that is the equivalent of __int64? None of the aliases compile. And I cannot find any of the long types in Math.h.

A third party library would also be acceptable.

3

There are 3 best solutions below

0
Gregory Lang On BEST ANSWER

Assuming you are using EVC++ 4.0...

You'll first need to make sure you have the Pocket PC 2003 SDK installed. If you are on win mobile 5.0 and up and are still attempting to use EVC++4.0 I will fight you (Ron Burgundy). The PPC 2003 SDK can be found here.

After it's install, update the linker to find the newly installed SDK header files with the macro definition of LONGLONG. To do this:

  1. Tools -> options
  2. Directories tab -> make sure the third drop down reads "include files"
  3. Add the path -> "C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Include\Armv4"
  4. Make sure to #include winnt.h in your class. In that header you will find the definition of LONGLONG which is an _int64

Good luck!

0
Sandeep Datta On

Do you have access to the LargeInt library in eVC++? IIRC this was a standard lib bundled with VC 6.0. VC 6.0 did not support __int64 natively.

1
Dan Byström On

"long long" is a synonym for "__int64" in VC++... maybe that works?