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

C / C++ / MFC

 
Questiona weird problem with global hooking of messages. Pin
Green Fuze23-Aug-08 3:07
Green Fuze23-Aug-08 3:07 
AnswerRe: a weird problem with global hooking of messages. Pin
Naveen23-Aug-08 21:32
Naveen23-Aug-08 21:32 
GeneralRe: a weird problem with global hooking of messages. Pin
Green Fuze23-Aug-08 21:47
Green Fuze23-Aug-08 21:47 
GeneralRe: a weird problem with global hooking of messages. Pin
Naveen23-Aug-08 22:20
Naveen23-Aug-08 22:20 
GeneralRe: a weird problem with global hooking of messages. Pin
Green Fuze24-Aug-08 0:35
Green Fuze24-Aug-08 0:35 
AnswerPassing the member function pointer to the AfxBeginThread and its problems. Pin
WindowsPistha23-Aug-08 3:01
WindowsPistha23-Aug-08 3:01 
GeneralRe: Passing the member function pointer to the AfxBeginThread and its problems. Pin
David Crow23-Aug-08 4:18
David Crow23-Aug-08 4:18 
GeneralRe: Passing the member function pointer to the AfxBeginThread and its problems. Pin
WindowsPistha24-Aug-08 19:11
WindowsPistha24-Aug-08 19:11 
GeneralRe: Passing the member function pointer to the AfxBeginThread and its problems. Pin
David Crow25-Aug-08 4:14
David Crow25-Aug-08 4:14 
GeneralRe: Passing the member function pointer to the AfxBeginThread and its problems. Pin
WindowsPistha26-Aug-08 4:22
WindowsPistha26-Aug-08 4:22 
QuestionDifference between 2 threads & 64 threads in VC++ Pin
lakshmiyv1723-Aug-08 2:14
lakshmiyv1723-Aug-08 2:14 
AnswerRe: Difference between 2 threads & 64 threads in VC++ [modified] Pin
SandipG 23-Aug-08 4:55
SandipG 23-Aug-08 4:55 
AnswerRe: Difference between 2 threads & 64 threads in VC++ Pin
bob1697223-Aug-08 8:22
bob1697223-Aug-08 8:22 
QuestionDebugging a Win32 dll loaded by LoadLibrary Pin
Klempie23-Aug-08 1:35
Klempie23-Aug-08 1:35 
AnswerRe: Debugging a Win32 dll loaded by LoadLibrary [modified] Pin
SandipG 23-Aug-08 4:52
SandipG 23-Aug-08 4:52 
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 

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.