| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
GetDiskFreeSpaceEx question (MFC)
BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName, PULARGE_INTEGER lpFreeBytesAvailable, PULARGE_INTEGER lpTotalNumberOfBytes, PULARGE_INTEGER lpTotalNumberOfFreeBytes ); The function retrieves information about the amount of space available on a disk volume: the total amount of space, the total amount of free space, and the total amount of free space available to the user associated with the calling thread. If I want the results to be displayed on the static, how can I achieve that result..? I know only one way - CWnd pointer to the static and SetWindowText function, but it accepts a string, how do I convert PULARGE_INTEGER to a string..? Or is there another way to put PULARGE_INTEGER on the static? |
|
#2
|
|||
|
|||
|
What do you mean to display result on static?
Are you trying to displa results on some Dialog Box as label? |
|
#3
|
|||
|
|||
|
I mean to display it as a static text.
I have found the solution by the way, so if anyone is interested it is the following: { unsigned __int64 param [3]; CString stat [3]; GetDiskFreeSpaceEx(path,(PULARGE_INTEGER)¶m[0],(PULARGE_INTEGER)¶m[1],(PULARGE_INTEGER)¶m[2]); for (int x=0; x<3; x++) stat[x].Format("%I64u", param[x]); } |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > GetDiskFreeSpaceEx question (MFC) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|