Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Accessing Recycle Bin Folder Path and Files in it Pin
Mila02511-Apr-06 22:10
Mila02511-Apr-06 22:10 
AnswerRe: Accessing Recycle Bin Folder Path and Files in it Pin
Mahesh Kulkarni11-Apr-06 22:10
Mahesh Kulkarni11-Apr-06 22:10 
QuestionRe: Accessing Recycle Bin Folder Path and Files in it Pin
rajeevktripathi11-Apr-06 22:52
rajeevktripathi11-Apr-06 22:52 
QuestionRe: Accessing Recycle Bin Folder Path and Files in it Pin
rajeevktripathi11-Apr-06 23:24
rajeevktripathi11-Apr-06 23:24 
QuestionRe: Accessing Recycle Bin Folder Path and Files in it Pin
David Crow12-Apr-06 3:42
David Crow12-Apr-06 3:42 
GeneralRe: Accessing Recycle Bin Folder Path and Files in it Pin
rajeevktripathi12-Apr-06 18:50
rajeevktripathi12-Apr-06 18:50 
QuestionHard Disk Free space Pin
parichaybp11-Apr-06 20:28
parichaybp11-Apr-06 20:28 
AnswerRe: Hard Disk Free space Pin
Mila02511-Apr-06 20:40
Mila02511-Apr-06 20:40 
Hi,

BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName,
PULARGE_INTEGER lpFreeBytesAvailable,
PULARGE_INTEGER lpTotalNumberOfBytes,
PULARGE_INTEGER lpTotalNumberOfFreeBytes
);

where:
lpDirectoryName - Pointer to a null-terminated string that specifies a directory on the disk of interest. If this parameter is NULL, the function uses the root of the current disk.

You can use i.e.:
std::stringstream sstr;

sstr << lpTotalNumberOfFreeBytes << _T( " bytes" );

SetWindowText( hWnd, sstr.str().c_str() );

where hWnd is a handle to editbox window.


-----------
Mila
GeneralRe: Hard Disk Free space Pin
parichaybp11-Apr-06 20:52
parichaybp11-Apr-06 20:52 
GeneralRe: Hard Disk Free space Pin
Waldermort11-Apr-06 20:57
Waldermort11-Apr-06 20:57 
GeneralRe: Hard Disk Free space Pin
parichaybp11-Apr-06 21:10
parichaybp11-Apr-06 21:10 
GeneralRe: Hard Disk Free space Pin
Mila02511-Apr-06 21:47
Mila02511-Apr-06 21:47 
AnswerRe: Hard Disk Free space Pin
Mahesh Kulkarni11-Apr-06 22:21
Mahesh Kulkarni11-Apr-06 22:21 
AnswerRe: Hard Disk Free space Pin
Hamid_RT11-Apr-06 21:15
Hamid_RT11-Apr-06 21:15 
AnswerRe: Hard Disk Free space Pin
kiran janaswamy11-Apr-06 21:30
kiran janaswamy11-Apr-06 21:30 
QuestionRe: Hard Disk Free space Pin
David Crow12-Apr-06 3:44
David Crow12-Apr-06 3:44 
QuestionCDaoDatabase Pin
Girish60111-Apr-06 20:25
Girish60111-Apr-06 20:25 
AnswerRe: CDaoDatabase Pin
kiran janaswamy11-Apr-06 21:27
kiran janaswamy11-Apr-06 21:27 
QuestionNew interface in activex control Pin
Identity Undisclosed11-Apr-06 20:20
Identity Undisclosed11-Apr-06 20:20 
Questionplay a video file Pin
jpms11-Apr-06 19:50
jpms11-Apr-06 19:50 
AnswerRe: play a video file Pin
Naveen11-Apr-06 19:56
Naveen11-Apr-06 19:56 
GeneralRe: play a video file Pin
jpms11-Apr-06 20:05
jpms11-Apr-06 20:05 
GeneralRe: play a video file Pin
Naveen11-Apr-06 20:16
Naveen11-Apr-06 20:16 
GeneralRe: play a video file Pin
jpms11-Apr-06 22:20
jpms11-Apr-06 22:20 
GeneralRe: play a video file Pin
Naveen11-Apr-06 22:40
Naveen11-Apr-06 22:40 

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.