Ram

This is a discussion on Ram within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I'm trying to get 01) the amount of total RAM the computer has 02) the amount of RAM currently ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    207

    Ram

    Hi!

    I'm trying to get

    01) the amount of total RAM the computer has
    02) the amount of RAM currently available

    I can't seem to find any decent tutorials for it.

    I'm using DirectX, but I can't find ANYTHING in DirectX that does this... :-(

    Does anyone know how/where I can do this?

    mw
    Blucast Corporation

  2. #2
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    207
    I tried to use the sample program provided at that link, but couldn't get it to work. However, I was able to get the sample program for GlobalMemoryStatus to work.

    When I tried using the GlobalMemoryStatusEx sample program, I got the error message that MEMORYSTATUSEX and GlobalMemoryStatusEx was "undefined". I think it was because they left out an #include in the sample program provided. Even the sample program for GlobalMemoryStatus left out #include <stdio.h> which is required for printf to work.

    Do you know how I can use that sample program at GlobalMemoryStatusEx and get it to work?

    mw
    Last edited by Lionmane; 10-31-2005 at 06:57 PM.
    Blucast Corporation

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    207
    Never mind... I don't need the extended version.

    mw
    Blucast Corporation

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. RAM upgrade
    By BobS0327 in forum Tech Board
    Replies: 6
    Last Post: 12-10-2008, 07:14 AM
  2. Ways to save RAM when RAM is very limited
    By suzanne_lim in forum C Programming
    Replies: 22
    Last Post: 02-07-2006, 12:39 AM
  3. Programming and RAM
    By spveer in forum C Programming
    Replies: 3
    Last Post: 06-16-2005, 11:17 AM
  4. RAM how do i know?
    By Boomba in forum Tech Board
    Replies: 5
    Last Post: 06-18-2003, 08:17 PM
  5. pointerz
    By xlordt in forum C Programming
    Replies: 6
    Last Post: 01-11-2002, 07:31 PM

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