Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do i transfer data to a property page? Pin
fynox14-Oct-03 19:24
fynox14-Oct-03 19:24 
GeneralRead all files in a specified directory Pin
hkl14-Oct-03 12:04
hkl14-Oct-03 12:04 
GeneralRe: Read all files in a specified directory Pin
Joel Holdsworth14-Oct-03 12:20
Joel Holdsworth14-Oct-03 12:20 
GeneralRe: Read all files in a specified directory Pin
hkl14-Oct-03 12:51
hkl14-Oct-03 12:51 
GeneralRe: Read all files in a specified directory Pin
David Crow15-Oct-03 7:59
David Crow15-Oct-03 7:59 
GeneralRe: Read all files in a specified directory Pin
vcplusplus14-Oct-03 12:25
vcplusplus14-Oct-03 12:25 
GeneralRe: Read all files in a specified directory Pin
hkl14-Oct-03 12:54
hkl14-Oct-03 12:54 
GeneralRe: Read all files in a specified directory Pin
georgiek5014-Oct-03 15:09
georgiek5014-Oct-03 15:09 
Try this:

HANDLE hFile;
WIN32_FIND_DATA wfd;

hFile = FindFirstFile("*.*", &wfd);

while ( FindNextFile(hFile, &wfd) != 0 )
{
     // your code here
     
     // include this is if you don't want the '.' and '..' to show up

     if ( (strcmp(wfd.cFileName, "..") != 0 ) && (strcmp(wfd.cFileName, ".")  != 0 )
             // your code here eg. cout << wfd.cFileName << endl;

    // include something like this if you don't want the directories:
    if (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
        // your code here eg. continue;
}

FindClose(hFile)

GeneralRe: Read all files in a specified directory Pin
alex.barylski14-Oct-03 19:23
alex.barylski14-Oct-03 19:23 
GeneralNetwork Spy ( Internet Spy ) Pin
asd175314-Oct-03 11:47
asd175314-Oct-03 11:47 
GeneralRe: Network Spy ( Internet Spy ) Pin
pma14-Oct-03 20:16
pma14-Oct-03 20:16 
GeneralEnding one application from within another Pin
georgiek5014-Oct-03 11:45
georgiek5014-Oct-03 11:45 
GeneralRe: Ending one application from within another Pin
Michael Dunn14-Oct-03 18:00
sitebuilderMichael Dunn14-Oct-03 18:00 
GeneralLNK2005 Pin
jimNLX14-Oct-03 11:31
jimNLX14-Oct-03 11:31 
GeneralRe: LNK2005 Pin
Ravi Bhavnani14-Oct-03 11:57
professionalRavi Bhavnani14-Oct-03 11:57 
GeneralRe: LNK2005 Pin
skaanji14-Oct-03 12:02
skaanji14-Oct-03 12:02 
GeneralRe: LNK2005 Pin
Jonas Larsson14-Oct-03 20:39
Jonas Larsson14-Oct-03 20:39 
Generaldtmf decoding Pin
Member 55624714-Oct-03 10:42
Member 55624714-Oct-03 10:42 
GeneralRe: dtmf decoding Pin
Michael P Butler14-Oct-03 22:50
Michael P Butler14-Oct-03 22:50 
GeneralVC6 compilation problem in oleidl.h Pin
Kuniva14-Oct-03 10:31
Kuniva14-Oct-03 10:31 
GeneralRe: VC6 compilation problem in oleidl.h Pin
Chris Richardson14-Oct-03 11:10
Chris Richardson14-Oct-03 11:10 
QuestionJAXB for C++? Pin
Ravi Bhavnani14-Oct-03 9:57
professionalRavi Bhavnani14-Oct-03 9:57 
General[DDraw] Surface creating problem Pin
furbyhater14-Oct-03 9:36
furbyhater14-Oct-03 9:36 
Generalconvert string to double without losing precision Pin
godzooky14-Oct-03 9:18
godzooky14-Oct-03 9:18 
GeneralRe: convert string to double without losing precision Pin
Steve S14-Oct-03 9:24
Steve S14-Oct-03 9:24 

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.