I solved the problem. I just needed to remove a line and the code worked fine. I guess I was trying to do more than I needed and it put me in a jam. Thanks for your help!
Type: Posts; User: ghe1
I solved the problem. I just needed to remove a line and the code worked fine. I guess I was trying to do more than I needed and it put me in a jam. Thanks for your help!
I use the following code to determine memory values on a 32bit machine and succeed with no errors and correct data. However, when I try to use this code for a 64bit machine it chokes. The error...
If you are just looking to change the background and font color of the cmd window, I suggest opening up the cmd window and then right clicking on the menu bar. You should be able to select...
At the prompt, I type "free" which gives me information regarding the total, used, free, cached memory as well as info regarding the swap.
Is there anyway to call "free" from another program and...
Is anyone aware of a function that will determine the memory usage? I have done some searching and I have found "memstat" function as well as "vmstat".
Fordy,
I see what you mean now...I guess my results are okay. I just really didn't understand the concept but now I do.
All,
Thanks for all the help!:)
I have converted them and I see that my phyical memory is very similar, but the virtual memory is off.
CONVERSIONS:
Computer Management:
Total Physical 511.418 MB
Available Physical 151.886...
I used what nvoigt had suggested and this is my output:
68 % of Memory in use.
511.418 Mbytes of physical memory
163.039 Mbytes of physical memory available
2047.875 Mbytes of virtual...
Also, when I use the GlobalMemoryStatus function, I get incorrect values returned for my virtual memory. The physical memory is pretty accurate.
Thanks very much for your help. I did try your code and it compiled with no errors, but I am worried about this function returning the correct values. I was reading on the MSDN web site under...
Does anyone have a suggestion as to how I would go about determining the total physical memory, available physical memory, total virtual memory, and available virtual memory?
I have been trying to...
PROBLEMS ALL RESOLVED...THANKS FOR SUGGESTIONS!
PROBLEMS ALL RESOLVED...THANKS FOR SUGGESTIONS!
PROBLEMS ALL RESOLVED...THANKS FOR SUGGESTIONS!
PROBLEMS ALL RESOLVED...THANKS FOR SUGGESTIONS!
my post was lost....any suggestions!!!!!!
Is there something out there that would allow me to take a substring of a character not a string? My character is a path name and I need to take the substring of the drive letter (i.e. C:\) only!
I get this error when I compile my code and all I am trying to do is get a substring. Any suggestions.
char szDrive[MAX_PATH]="c:\\";
char dir[MAX_PATH]; BOOL bRet;...
in windows? (i forgot to add this...just in case)
Is there a function like in Unix that determines your present working directory (pwd)?
Thanks for the advice. That is what I have been needing! :D
My situation is this: I have a c program that determines the free disk space on a drive. Within this code, I need to add a function that is called before the rest of the code executes to determine...
What are the major differences of the linux syntax in comparision to windows syntax while programming?
Are you able to call a unix function from a windows programming environment?
Is anyone familar with this: pcwinnt_sys? If so, what ways is it used?