Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: writing windows service Pin
David Crow25-May-05 4:01
David Crow25-May-05 4:01 
GeneralCListCtrl : Set particular Row backgroung color Pin
study.sourabh24-May-05 20:02
study.sourabh24-May-05 20:02 
GeneralRe: CListCtrl : Set particular Row backgroung color Pin
Jack Puppy24-May-05 21:23
Jack Puppy24-May-05 21:23 
GeneralRe: MAC hybrid cd Pin
Jon Hulatt25-May-05 4:00
Jon Hulatt25-May-05 4:00 
GeneralFindfirstfile question Pin
Steve Messer24-May-05 17:43
Steve Messer24-May-05 17:43 
GeneralRe: Findfirstfile question Pin
Abhi Lahare24-May-05 18:35
Abhi Lahare24-May-05 18:35 
GeneralRe: Findfirstfile question Pin
Steve Messer24-May-05 19:11
Steve Messer24-May-05 19:11 
GeneralRe: Findfirstfile question Pin
GDavy24-May-05 21:22
GDavy24-May-05 21:22 
Well I`ll guess you`llhave to do a FindFirstfile followed by a
do - while statement where you check if the file has one of the extensions you are looking for...Something like below...


<code> TCHAR dir[] = { _T("C:\MyPath\Mypics\*.*") };
bool bFoundLegalPic=false;
WIN32_FIND_DATA findData;
HANDLE srchHandle = FindFirstFile(dir, &findData);
if(INVALID_HANDLE_VALUE != srchHandle )
{
do{
//here check last 4 chars of filename (in the finddata variable)
//with the extensions you wish to retrieve

}while(!bFoundLegalPic && FindNextFile(srchHandle, &findData));
FindClose(srchHandle);</code>

Hope this helps you...
Greets,
Davy
GeneralRe: Findfirstfile question Pin
Steve Messer24-May-05 21:30
Steve Messer24-May-05 21:30 
GeneralCrypt32.dll Pin
Tuscon24-May-05 17:42
Tuscon24-May-05 17:42 
GeneralRe: Crypt32.dll Pin
BlackDice25-May-05 6:30
BlackDice25-May-05 6:30 
Generalmaking packets Pin
_tasleem24-May-05 16:24
_tasleem24-May-05 16:24 
Questionhow to react when user click the same tree item Pin
Lido Paul24-May-05 14:35
Lido Paul24-May-05 14:35 
AnswerRe: how to react when user click the same tree item Pin
PJ Arends24-May-05 16:05
professionalPJ Arends24-May-05 16:05 
GeneralWin32_WindowsProductActivation with C++ Pin
24-May-05 12:38
suss24-May-05 12:38 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
Aamir Butt24-May-05 23:49
Aamir Butt24-May-05 23:49 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
25-May-05 12:51
suss25-May-05 12:51 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
Aamir Butt25-May-05 19:25
Aamir Butt25-May-05 19:25 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
David Crow25-May-05 4:06
David Crow25-May-05 4:06 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
macakd25-May-05 13:02
macakd25-May-05 13:02 
GeneralRe: Win32_WindowsProductActivation with C++ Pin
David Crow26-May-05 2:25
David Crow26-May-05 2:25 
QuestionHow to get Horizontal Scroll on Property Page? Pin
theFrenchHornet24-May-05 11:58
theFrenchHornet24-May-05 11:58 
GeneralSingle-threaded versus Multithreaded Pin
Ramsus24-May-05 11:38
Ramsus24-May-05 11:38 
GeneralRe: Single-threaded versus Multithreaded Pin
Ryan Binns24-May-05 18:22
Ryan Binns24-May-05 18:22 
GeneralRe: Single-threaded versus Multithreaded Pin
Andrew Walker24-May-05 22:21
Andrew Walker24-May-05 22:21 

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.