A angelfaceH Unregistered / Unconfirmed GUEST, unregistred user! 2003-02-19 #1 这问题可能有点太简单了,请问怎么样才能把获取的内存信息,用label.caption显示出来?
D dreamliu2001 Unregistered / Unconfirmed GUEST, unregistred user! 2003-02-19 #2 获得当前内存大小:<br>var<br> MS: TMemoryStatus;<br>begin<br> MS.dwLength := SizeOf(TMemoryStatus);<br> GlobalMemoryStatus(MS);<br> Label1.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys div 1024);<br>end
获得当前内存大小:<br>var<br> MS: TMemoryStatus;<br>begin<br> MS.dwLength := SizeOf(TMemoryStatus);<br> GlobalMemoryStatus(MS);<br> Label1.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys div 1024);<br>end