Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Remove Duplicate Values Pin
Michael Schubert20-Aug-08 2:57
Michael Schubert20-Aug-08 2:57 
GeneralRe: Remove Duplicate Values Pin
CPallini20-Aug-08 3:14
mveCPallini20-Aug-08 3:14 
GeneralRe: Remove Duplicate Values Pin
toxcct20-Aug-08 3:16
toxcct20-Aug-08 3:16 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 3:28
professionalRajesh R Subramanian20-Aug-08 3:28 
GeneralRe: Remove Duplicate Values [modified] Pin
CPallini20-Aug-08 20:59
mveCPallini20-Aug-08 20:59 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 22:39
professionalRajesh R Subramanian20-Aug-08 22:39 
GeneralRe: Remove Duplicate Values Pin
CPallini20-Aug-08 22:54
mveCPallini20-Aug-08 22:54 
JokeRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 23:00
professionalRajesh R Subramanian20-Aug-08 23:00 
JokeRe: Remove Duplicate Values Pin
CPallini20-Aug-08 23:10
mveCPallini20-Aug-08 23:10 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 23:19
professionalRajesh R Subramanian20-Aug-08 23:19 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 3:13
professionalRajesh R Subramanian20-Aug-08 3:13 
GeneralRe: Remove Duplicate Values Pin
CPallini20-Aug-08 3:18
mveCPallini20-Aug-08 3:18 
GeneralRe: Remove Duplicate Values Pin
Michael Schubert20-Aug-08 4:03
Michael Schubert20-Aug-08 4:03 
GeneralRe: Remove Duplicate Values Pin
Rajesh R Subramanian20-Aug-08 20:28
professionalRajesh R Subramanian20-Aug-08 20:28 
GeneralRe: Remove Duplicate Values Pin
CPallini20-Aug-08 21:04
mveCPallini20-Aug-08 21:04 
GeneralRe: Remove Duplicate Values Pin
NewVC++20-Aug-08 19:10
NewVC++20-Aug-08 19:10 
QuestionRe: Remove Duplicate Values Pin
CPallini20-Aug-08 21:36
mveCPallini20-Aug-08 21:36 
AnswerRe: Remove Duplicate Values Pin
Michael Schubert20-Aug-08 2:23
Michael Schubert20-Aug-08 2:23 
AnswerRe: Remove Duplicate Values Pin
Jijo.Raj20-Aug-08 3:36
Jijo.Raj20-Aug-08 3:36 
GeneralRe: Remove Duplicate Values Pin
NewVC++20-Aug-08 19:13
NewVC++20-Aug-08 19:13 
Here i am sending a code which is adding string.And plz tell me how can i remove to add duplicate string..

BOOL CUSBDlg::FileList()
{



//Get Logical Drives

DWORD dwDrives=GetLogicalDrives();



if(0==dwDrives)

{

// return FALSE;

}



DWORD dwCount=0;



char chDriveLabel='A';



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

// std::cout <<"Files in " << szRootpath << std::endl;



m_ListCountries.AddString(szRootpath);

m_tree.InsertItem(szRootpath);



//* represent search all files and directories

szRootpath[3]='*';



hFind=FindFirstFile(szRootpath,&FindFileData);



if (INVALID_HANDLE_VALUE == hFind)

{

// return FALSE;

}




// List all the files in the directory .

do

{


//ignore the sub directories

if (strcmp(FindFileData.cFileName,_T(".")) && strcmp(FindFileData.cFileName,_T("..")))

{

m_ListCountries.AddString(FindFileData.cFileName);
m_tree.InsertItem(FindFileData.cFileName);

}



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



FindClose(hFind);

}



}

dwDrives = dwDrives >> 1;//next drive

chDriveLabel++;

}

return true;

}

Plz help me
GeneralRe: Remove Duplicate Values Pin
Jijo.Raj21-Aug-08 3:38
Jijo.Raj21-Aug-08 3:38 
QuestionCan I show UI in Windows service in MFC? [modified] Pin
sumit.durg20-Aug-08 0:52
sumit.durg20-Aug-08 0:52 
AnswerRe: Can I show UI in Windows service? Pin
Nibu babu thomas20-Aug-08 1:15
Nibu babu thomas20-Aug-08 1:15 
AnswerRe: Can I show UI in Windows service in MFC? Pin
Jonathan [Darka]20-Aug-08 1:49
professionalJonathan [Darka]20-Aug-08 1:49 
AnswerRe: Can I show UI in Windows service in MFC? Pin
Mike Dimmick20-Aug-08 7:06
Mike Dimmick20-Aug-08 7:06 

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.