Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: the Dll I write under Window XP cannot be registered under Windows 2000. why? Pin
ewighell4-Sep-06 21:07
ewighell4-Sep-06 21:07 
GeneralRe: the Dll I write under Window XP cannot be registered under Windows 2000. why? Pin
prasad_som4-Sep-06 21:16
prasad_som4-Sep-06 21:16 
QuestionHow to detect the memory information in windows platform? Pin
HansonDavid4-Sep-06 16:31
HansonDavid4-Sep-06 16:31 
AnswerRe: How to detect the memory information in windows platform? Pin
prasad_som4-Sep-06 19:52
prasad_som4-Sep-06 19:52 
AnswerRe: How to detect the memory information in windows platform? Pin
Hamid_RT4-Sep-06 20:10
Hamid_RT4-Sep-06 20:10 
GeneralRe: How to detect the memory information in windows platform? Pin
HansonDavid5-Sep-06 2:25
HansonDavid5-Sep-06 2:25 
GeneralRe: How to detect the memory information in windows platform? Pin
Hamid_RT5-Sep-06 2:57
Hamid_RT5-Sep-06 2:57 
AnswerRe: How to detect the memory information in windows platform? Pin
gregdolley4-Sep-06 22:01
gregdolley4-Sep-06 22:01 
HansonDavid wrote:
I want to get the some memory information, just as memory total size, memory type, memory manufacture, memory frequency, and so on. just the memory information in windows platform.


This will get some of what you're looking for:


<br />
void some_function(void)<br />
{<br />
  LPMEMORYSTATUS buffer;<br />
<br />
  ::GlobalMemoryStatus(&buffer);<br />
}<br />


The MEMORYSTATUS buffer looks like this:

<br />
typedef struct _MEMORYSTATUS {<br />
    DWORD dwLength;<br />
    DWORD dwMemoryLoad;<br />
    DWORD dwTotalPhys;<br />
    DWORD dwAvailPhys;<br />
    DWORD dwTotalPageFile;<br />
    DWORD dwAvailPageFile;<br />
    DWORD dwTotalVirtual;<br />
    DWORD dwAvailVirtual;<br />
} MEMORYSTATUS, *LPMEMORYSTATUS;<br />


GlobalMemoryStatus() is inside winbase.h, and I think MFC includes this by default, so you probably don't need any extra headers.



-Greg Dolley
GeneralRe: How to detect the memory information in windows platform? Pin
HansonDavid5-Sep-06 2:22
HansonDavid5-Sep-06 2:22 
QuestionC++ Client with Ruby on Rails server: Where to start? Pin
dy134-Sep-06 16:31
dy134-Sep-06 16:31 
QuestionMultiLangual Problem Pin
nilesh.gawade4-Sep-06 15:29
nilesh.gawade4-Sep-06 15:29 
AnswerRe: MultiLangual Problem Pin
Waldermort4-Sep-06 19:23
Waldermort4-Sep-06 19:23 
QuestionRe: MultiLangual Problem Pin
nilesh.gawade5-Sep-06 0:27
nilesh.gawade5-Sep-06 0:27 
Questionserial enumeration Pin
drequinox4-Sep-06 11:07
drequinox4-Sep-06 11:07 
AnswerRe: serial enumeration Pin
XPointer4-Sep-06 17:47
XPointer4-Sep-06 17:47 
GeneralRe: serial enumeration Pin
drequinox5-Sep-06 1:36
drequinox5-Sep-06 1:36 
AnswerRe: serial enumeration Pin
Hamid_RT4-Sep-06 22:42
Hamid_RT4-Sep-06 22:42 
QuestionDLL project does not produce lib or exp files Pin
User 5826194-Sep-06 10:47
User 5826194-Sep-06 10:47 
AnswerRe: DLL project does not produce lib or exp files Pin
prasad_som4-Sep-06 18:42
prasad_som4-Sep-06 18:42 
Questionusing PictureBox Pin
Semion_N4-Sep-06 9:06
Semion_N4-Sep-06 9:06 
AnswerRe: using PictureBox Pin
Nader Elshehabi4-Sep-06 9:46
Nader Elshehabi4-Sep-06 9:46 
GeneralRe: using PictureBox Pin
Semion_N4-Sep-06 9:55
Semion_N4-Sep-06 9:55 
GeneralRe: using PictureBox Pin
Nader Elshehabi4-Sep-06 11:11
Nader Elshehabi4-Sep-06 11:11 
GeneralRe: using PictureBox Pin
Semion_N4-Sep-06 18:20
Semion_N4-Sep-06 18:20 
GeneralRe: using PictureBox Pin
Semion_N5-Sep-06 2:54
Semion_N5-Sep-06 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.