diskfree question

This is a discussion on diskfree question within the Windows Programming forums, part of the Platform Specific Boards category; ok, I don't get it. when I do the properties of a cdr that has not been closed yet, it ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    3

    diskfree question

    ok, I don't get it. when I do the properties of a cdr that has not been
    closed yet, it displays accurate disk free and disk total. but when I use
    this common code (even in C-Builder which I use), I get 0KB.

    __int64 AmtFree = DiskFree(0);
    sprintf(freestrng,"%I64d KB free\0", AmtFree/1024 );

    fixed drives and cdrw's seem to work fine.

    can anyone tell me where windows gathers the information.

    thanks,

    ps: I am changing the current directory to the drive first.
    Last edited by rsmith5413; 06-27-2007 at 06:49 PM. Reason: added a line

  2. #2
    Registered User Joelito's Avatar
    Join Date
    Mar 2005
    Location
    Tijuana, BC, México
    Posts
    308
    Maybe from GlobalMemoryStatus?
    * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
    * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 03:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21