Click here to Skip to main content
15,887,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugging a Win32 dll loaded by LoadLibrary Pin
Klempie24-Aug-08 6:07
Klempie24-Aug-08 6:07 
AnswerRe: Debugging a Win32 dll loaded by LoadLibrary Pin
Hamid_RT23-Aug-08 6:50
Hamid_RT23-Aug-08 6:50 
QuestionHow to get a url if IP address is known Pin
Dhiraj kumar Saini23-Aug-08 1:04
Dhiraj kumar Saini23-Aug-08 1:04 
AnswerRe: How to get a url if IP address is known Pin
Perspx23-Aug-08 1:31
Perspx23-Aug-08 1:31 
AnswerRe: How to get a url if IP address is known Pin
enhzflep23-Aug-08 1:33
enhzflep23-Aug-08 1:33 
Question[Message Deleted] Pin
Dhiraj kumar Saini23-Aug-08 0:01
Dhiraj kumar Saini23-Aug-08 0:01 
QuestionRe: dictionary problem Pin
enhzflep23-Aug-08 1:36
enhzflep23-Aug-08 1:36 
QuestionRemove unexpexted out put Pin
vcprog22-Aug-08 23:58
vcprog22-Aug-08 23:58 
Hi all

Once again i am asking same question how can i remove .What happen in this code when usb drive is blank then this type of out put come
ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ.
plz help me
BOOL CUSBDlg::FileList()
{



CString acb="";



//Get Logical Drives

DWORD dwDrives=GetLogicalDrives();



if(0==dwDrives)

{

return FALSE;

}



DWORD dwCount=0;



char chDriveLabel='C';



char szRootpath[5]={0,0,0,0,0};



while(dwDrives !=0)

{

if ((dwDrives & 1) != 0)

{

sprintf(szRootpath,"%c:\\",chDriveLabel);


//removable drive

if(DRIVE_REMOVABLE==GetDriveType(szRootpath))

{

WIN32_FIND_DATA FindFileData;

HANDLE hFind;



//Removable dirve lable



// AfxMessageBox(szRootpath);


m_ListCountries.AddString(szRootpath);

HTREEITEM hRoot1 = m_tree.InsertItem(szRootpath, 0, 0);





//* represent search all files and directories

szRootpath[3]='*';



hFind=FindFirstFile(szRootpath, &FindFileData);



if (INVALID_HANDLE_VALUE == hFind)

{

// return TRUE;

}




// List all the files in the directory .

do

{


//ignore the sub directories

if( _tcscmp( FindFileData.cFileName, _T(".") ) && _tcscmp( FindFileData.cFileName, _T("..") ) )
{






m_ListCountries.AddString(FindFileData.cFileName);


}

}while (FindNextFile(hFind, &FindFileData) != 0);
CFileFind finder;




FindClose(hFind);

}



}

dwDrives = dwDrives >> 1;//next drive

chDriveLabel++;

}

return true;

}
AnswerRe: Remove unexpexted out put Pin
Ștefan-Mihai MOGA23-Aug-08 0:13
professionalȘtefan-Mihai MOGA23-Aug-08 0:13 
GeneralRe: Remove unexpexted out put Pin
vcprog23-Aug-08 0:32
vcprog23-Aug-08 0:32 
GeneralRe: Remove unexpexted out put Pin
Ștefan-Mihai MOGA23-Aug-08 0:54
professionalȘtefan-Mihai MOGA23-Aug-08 0:54 
GeneralRe: Remove unexpexted out put Pin
vcprog23-Aug-08 1:07
vcprog23-Aug-08 1:07 
GeneralRe: Remove unexpexted out put Pin
David Crow23-Aug-08 4:03
David Crow23-Aug-08 4:03 
AnswerRe: Remove unexpexted out put Pin
David Crow23-Aug-08 4:04
David Crow23-Aug-08 4:04 
GeneralRe: Remove unexpexted out put Pin
NewVC++24-Aug-08 18:42
NewVC++24-Aug-08 18:42 
QuestionRe: Remove unexpexted out put Pin
David Crow25-Aug-08 4:20
David Crow25-Aug-08 4:20 
Questionconvert into string Pin
polopo22-Aug-08 23:10
polopo22-Aug-08 23:10 
AnswerRe: convert into string Pin
Cedric Moonen22-Aug-08 23:28
Cedric Moonen22-Aug-08 23:28 
AnswerRe: convert into string Pin
David Crow23-Aug-08 4:06
David Crow23-Aug-08 4:06 
QuestionRe: convert into string Pin
Hamid_RT23-Aug-08 6:44
Hamid_RT23-Aug-08 6:44 
AnswerRe: convert into string Pin
SandipG 23-Aug-08 8:59
SandipG 23-Aug-08 8:59 
QuestionDelete Tree Item Pin
NewVC++22-Aug-08 21:09
NewVC++22-Aug-08 21:09 
AnswerRe: Delete Tree Item Pin
_AnsHUMAN_ 22-Aug-08 21:47
_AnsHUMAN_ 22-Aug-08 21:47 
QuestionSHFullScreen() causes MessageBox dismissal to be slow (Pocket PC Windows Mobile 6) Pin
abupriabi@yahoo.com22-Aug-08 15:37
abupriabi@yahoo.com22-Aug-08 15:37 
QuestionFOF_WANTMAPPINGHANDLE Pin
Bram van Kampen22-Aug-08 15:26
Bram van Kampen22-Aug-08 15:26 

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.