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. How to get the size of the file also the data transferred in bytes

How to get the size of the file also the data transferred in bytes

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminjsonhelptutorial
4 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.
  • A Offline
    A Offline
    Anamika2005
    wrote on last edited by
    #1

    Can somebody help me in this .. i need to get the size of the file in my FTp client application in MFC also i need to get the data bytes tranferred while uploading or downloading from FTP server .. Which API is suitable.. Thanks Shikha

    P 2 Replies Last reply
    0
    • A Anamika2005

      Can somebody help me in this .. i need to get the size of the file in my FTp client application in MFC also i need to get the data bytes tranferred while uploading or downloading from FTP server .. Which API is suitable.. Thanks Shikha

      P Offline
      P Offline
      priyeshtinku
      wrote on last edited by
      #2

      u can read or write file from ftp by using wininet.h . InternetReadFile(, , , ) function gives the number of bytes read.

      A 1 Reply Last reply
      0
      • P priyeshtinku

        u can read or write file from ftp by using wininet.h . InternetReadFile(, , , ) function gives the number of bytes read.

        A Offline
        A Offline
        Anamika2005
        wrote on last edited by
        #3

        thanks for reply.... i just check it out ... Thanks Shikha

        1 Reply Last reply
        0
        • A Anamika2005

          Can somebody help me in this .. i need to get the size of the file in my FTp client application in MFC also i need to get the data bytes tranferred while uploading or downloading from FTP server .. Which API is suitable.. Thanks Shikha

          P Offline
          P Offline
          priyeshtinku
          wrote on last edited by
          #4

          Let me know that work or not.I made the project which downloads the file from ftp server and shows the progress in progressbar.I can guide u further

          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