Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. 11 digit numbers

11 digit numbers

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    locoone
    wrote on last edited by
    #1

    i have a simple findfile program the problem i have is some files i have are very large 12 gig each anything under 4 gig and it has the right size over 4 gig and its wrong ive tryed everything i can think of but nothing is working i know it can be done im just doing something wrong can anyone help?

    G 1 Reply Last reply
    0
    • L locoone

      i have a simple findfile program the problem i have is some files i have are very large 12 gig each anything under 4 gig and it has the right size over 4 gig and its wrong ive tryed everything i can think of but nothing is working i know it can be done im just doing something wrong can anyone help?

      G Offline
      G Offline
      GameProfessor
      wrote on last edited by
      #2

      It's simple for number > 4 Gb, you need a 64 bit integer, it consists of two 32 bit integer: low bit and high bit DWORD GetFileSize( HANDLE hFile, // handle of file to get size of LPDWORD lpFileSizeHigh // pointer to high-order word for file size ); use this function to get file size, it returns the low word of file size. lpFileSizeHight will store the high bytes of file size.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups