Click here to Skip to main content
15,885,020 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCall CSoket::Socket() Funtion fail Pin
jeansea9-Sep-09 18:29
jeansea9-Sep-09 18:29 
AnswerRe: Call CSoket::Socket() Funtion fail Pin
David Crow10-Sep-09 3:52
David Crow10-Sep-09 3:52 
QuestionHow to create conference in iaxclient.dll??? Pin
nitu dhanurved9-Sep-09 18:28
nitu dhanurved9-Sep-09 18:28 
QuestionOpen random file inside a folder using Visual C++ 6.0 [solved] Pin
Eka Candra9-Sep-09 17:56
Eka Candra9-Sep-09 17:56 
AnswerRe: Open random file inside a folder using Visual C++ 6.0 Pin
Naveen9-Sep-09 18:09
Naveen9-Sep-09 18:09 
GeneralRe: Open random file inside a folder using Visual C++ 6.0 Pin
Eka Candra9-Sep-09 19:40
Eka Candra9-Sep-09 19:40 
GeneralRe: Open random file inside a folder using Visual C++ 6.0 Pin
Naveen9-Sep-09 19:46
Naveen9-Sep-09 19:46 
AnswerRe: Open random file inside a folder using Visual C++ 6.0 Pin
Adam Roderick J9-Sep-09 18:48
Adam Roderick J9-Sep-09 18:48 
Just try with the below logic to parse even the directory inside directory for search Smile | :)

CStringArray m_FileList;

void SearchFile( LPCTSTR lpszFolder )
{
	CFileFind ff;
	CString csFolder = lpszFolder;
	if( _T( '\\' ) != csFolder[csFolder.GetLength()-1])
    {
		csFolder += _T( "\\*.*" );
    }
	BOOL bWorking = ff.FindFile(csFolder  ); 
	while(bWorking)
    {
		bWorking = ff.FindNextFile();
		CString csTemp = ff.GetFilePath();
		if(!ff.IsDots() && ff.IsDirectory())
        {
			SearchFile( ff.GetFilePath() );
		}
        if(!ff.IsDirectory())
        {
            CString csName = ff.GetFilePath();
            if( -1 != csName.Find( _T( ".txt" ), 0 ))
            {
				m_FileList.Add( csName );
            }
        }
	}
}


Величие не Бога может быть недооценена.

AnswerRe: Open random file inside a folder using Visual C++ 6.0 [modified] Pin
Stuart Dootson9-Sep-09 20:06
professionalStuart Dootson9-Sep-09 20:06 
QuestionRe: Open random file inside a folder using Visual C++ 6.0 [solved] Pin
David Crow10-Sep-09 3:55
David Crow10-Sep-09 3:55 
QuestionHiding application menu at runtime?? Pin
Kiran Satish9-Sep-09 16:43
Kiran Satish9-Sep-09 16:43 
AnswerRe: Hiding application menu at runtime?? Pin
Selvam R9-Sep-09 17:12
professionalSelvam R9-Sep-09 17:12 
GeneralRe: Hiding application menu at runtime?? Pin
Kiran Satish9-Sep-09 18:56
Kiran Satish9-Sep-09 18:56 
GeneralRe: Hiding application menu at runtime?? [modified] Pin
Selvam R9-Sep-09 19:21
professionalSelvam R9-Sep-09 19:21 
GeneralRe: Hiding application menu at runtime?? Pin
kilt10-Sep-09 6:30
kilt10-Sep-09 6:30 
GeneralRe: Hiding application menu at runtime?? Pin
David Crow14-Sep-09 3:51
David Crow14-Sep-09 3:51 
Questionmms Pin
viliam9-Sep-09 10:53
viliam9-Sep-09 10:53 
AnswerRe: mms Pin
Selvam R9-Sep-09 16:56
professionalSelvam R9-Sep-09 16:56 
QuestionPerforming Active scan with flush of old scanned data from the Wireless NIC - how ? Pin
amitalonm9-Sep-09 7:51
amitalonm9-Sep-09 7:51 
GeneralRe: Performing Active scan with flush of old scanned data from the Wireless NIC - how ? Pin
amitalonm9-Sep-09 20:46
amitalonm9-Sep-09 20:46 
GeneralThe relevant code part that I used is attached as well Pin
amitalonm9-Sep-09 20:58
amitalonm9-Sep-09 20:58 
Questionhelp me to cut a CString to many pieces Pin
tucn879-Sep-09 6:53
tucn879-Sep-09 6:53 
AnswerRe: help me to cut a CString to many pieces Pin
CPallini9-Sep-09 7:04
mveCPallini9-Sep-09 7:04 
AnswerRe: help me to cut a CString to many pieces Pin
Maximilien9-Sep-09 7:21
Maximilien9-Sep-09 7:21 
AnswerRe: help me to cut a CString to many pieces Pin
Rajesh R Subramanian9-Sep-09 7:41
professionalRajesh R Subramanian9-Sep-09 7:41 

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.