Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: Calculate MD5 sum of a big file

  1. #21
    Join Date
    Oct 2010
    Location
    Earth
    Posts
    50
    Thanks
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Calculate MD5 sum of a big file

    Sorry, but another problem: With Windows I cannot open the dvd drive!

    Qt Code:
    1. QFile dvd("D:");
    2.  
    3. if (dvd.open(QIODevice::ReadOnly)) {
    4. (...)
    5. }
    To copy to clipboard, switch view to plain text mode 

    dvd.open returns false, as admin too! Any ideas?

  2. #22
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Calculate MD5 sum of a big file

    Devices are not files on Windows. The entire conversation to date has been about Linux/UNIX systems so nobody has pointed this out. You may need to use Windows API calls to do this, e.g. http://www.codeproject.com/Articles/...ding-Audio-CDs

    From that article it may be worth trying QFile dvd("\\\\.\\D:") as the file name first... but I wouldn't hold much hope.

  3. #23
    Join Date
    Oct 2010
    Location
    Earth
    Posts
    50
    Thanks
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Calculate MD5 sum of a big file

    QFile dvd("\\\\.\\D:") doesn't work ... pity!

Similar Threads

  1. Replies: 7
    Last Post: 15th February 2012, 13:51
  2. Qtcreator won't calculate correctly
    By thefatladysingsopera in forum Newbie
    Replies: 3
    Last Post: 3rd June 2011, 23:43
  3. calculate draw time
    By johnsoga in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2009, 02:03
  4. how to calculate difference b/w two times
    By dummystories in forum Newbie
    Replies: 1
    Last Post: 9th March 2009, 13:58
  5. Replies: 0
    Last Post: 6th March 2009, 08:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.