Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MessageBox not getting Focus Pin
Naveen20-Jul-09 20:49
Naveen20-Jul-09 20:49 
GeneralRe: MessageBox not getting Focus Pin
Member 383463020-Jul-09 20:56
Member 383463020-Jul-09 20:56 
GeneralRe: MessageBox not getting Focus Pin
Naveen20-Jul-09 22:20
Naveen20-Jul-09 22:20 
GeneralRe: MessageBox not getting Focus Pin
Member 383463028-Jul-09 23:14
Member 383463028-Jul-09 23:14 
Questionfilefind Pin
kumar sanghvi20-Jul-09 0:23
kumar sanghvi20-Jul-09 0:23 
AnswerRe: filefind Pin
n1pabs20-Jul-09 0:29
n1pabs20-Jul-09 0:29 
GeneralRe: filefind Pin
kumar sanghvi20-Jul-09 0:40
kumar sanghvi20-Jul-09 0:40 
GeneralRe: filefind Pin
n1pabs20-Jul-09 0:59
n1pabs20-Jul-09 0:59 
Ok this is a bit dirty, and untested code. But I have used something similar

void myFindFile(szPath)
{
	CFileFind ff;
        HANDLE hFindFile;
	
	CString path = szPath;
	if(path.Right(1) != "\\")
		path += "\\";

	path += "*.*";

	BOOL res = ff.FindFile(path);
	
	while(res)
	{
		res = ff.FindNextFile();
		if (!ff.IsDots() && !ff.IsDirectory())
		{
			if(_tcsstr(ff.GetFileName(), _T("test.ini")))
			{
				//Found your file
			}
		}
		else if (!ff.IsDots() && ff.IsDirectory())
		{
			path = ff.GetFilePath();
			myFindFile(path);
		}
	}
}


Basically pass the starting point to this function

myFindFile(_T("D:"))


This function will search for every file on that given path, plus inside each folder the while loop is where you look for the specific file.

Hope it helps.
QuestionHow to use SHCNF_PRINTER with SHChangeNotify Pin
n1pabs20-Jul-09 0:13
n1pabs20-Jul-09 0:13 
QuestionHow to insert in the file.. Pin
Padmanabha_M19-Jul-09 23:25
Padmanabha_M19-Jul-09 23:25 
AnswerRe: How to insert in the file.. Pin
«_Superman_»20-Jul-09 1:53
professional«_Superman_»20-Jul-09 1:53 
AnswerRe: How to insert in the file.. Pin
David Crow20-Jul-09 3:04
David Crow20-Jul-09 3:04 
QuestionSetSel problem in dialog Pin
DevelopmentNoob19-Jul-09 22:40
DevelopmentNoob19-Jul-09 22:40 
AnswerRe: SetSel problem in dialog Pin
«_Superman_»19-Jul-09 22:54
professional«_Superman_»19-Jul-09 22:54 
GeneralRe: SetSel problem in dialog Pin
DevelopmentNoob19-Jul-09 23:04
DevelopmentNoob19-Jul-09 23:04 
AnswerRe: SetSel problem in dialog Pin
David Crow20-Jul-09 3:19
David Crow20-Jul-09 3:19 
QuestionHow can i load CAnimateCtrl to GIF File. Pin
Murugan k19-Jul-09 22:33
Murugan k19-Jul-09 22:33 
AnswerRe: How can i load CAnimateCtrl to GIF File. Pin
«_Superman_»19-Jul-09 22:57
professional«_Superman_»19-Jul-09 22:57 
QuestionProblem of TreeCtrl. Pin
Le@rner19-Jul-09 22:24
Le@rner19-Jul-09 22:24 
AnswerRe: Problem of TreeCtrl. Pin
«_Superman_»19-Jul-09 23:00
professional«_Superman_»19-Jul-09 23:00 
GeneralRe: Problem of TreeCtrl. Pin
Le@rner19-Jul-09 23:06
Le@rner19-Jul-09 23:06 
AnswerRe: Problem of TreeCtrl. Pin
hanq_3891013019-Jul-09 23:01
hanq_3891013019-Jul-09 23:01 
AnswerRe: Problem of TreeCtrl. Pin
Naveen19-Jul-09 23:01
Naveen19-Jul-09 23:01 
QuestionApplication unresponsive when building a 32 bit MFC Print Application that uses StartDoc API on 64 bit OS as Win32 in Visual Studio 2008 Pin
BhaskarSomaya19-Jul-09 22:23
BhaskarSomaya19-Jul-09 22:23 
QuestionRegarding IWshRuntimeLibrary Pin
V K 219-Jul-09 21:01
V K 219-Jul-09 21:01 

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.