Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you get the number of colors displayed? Pin
Atlantys20-Jul-03 16:54
Atlantys20-Jul-03 16:54 
GeneralRe: How do you get the number of colors displayed? Pin
Ryan Binns20-Jul-03 17:55
Ryan Binns20-Jul-03 17:55 
GeneralRe: How do you get the number of colors displayed? Pin
Atlantys20-Jul-03 19:19
Atlantys20-Jul-03 19:19 
GeneralRe: How do you get the number of colors displayed? Pin
Ryan Binns20-Jul-03 19:28
Ryan Binns20-Jul-03 19:28 
GeneralRe: How do you get the number of colors displayed? Pin
Atlantys20-Jul-03 19:52
Atlantys20-Jul-03 19:52 
GeneralRe: How do you get the number of colors displayed? Pin
Terry O'Nolley21-Jul-03 1:39
Terry O'Nolley21-Jul-03 1:39 
GeneralRe: How do you get the number of colors displayed? Pin
Ryan Binns21-Jul-03 1:45
Ryan Binns21-Jul-03 1:45 
AnswerRe: How do you get the number of colors displayed? Pin
Atlantys20-Jul-03 15:47
Atlantys20-Jul-03 15:47 
GeneralMSDN 2003 Pin
Toni7820-Jul-03 13:32
Toni7820-Jul-03 13:32 
GeneralRe: MSDN 2003 Pin
Atlantys20-Jul-03 14:50
Atlantys20-Jul-03 14:50 
GeneralRe: MSDN 2003 Pin
Toni7820-Jul-03 15:27
Toni7820-Jul-03 15:27 
GeneralRe: MSDN 2003 Pin
Atlantys20-Jul-03 15:41
Atlantys20-Jul-03 15:41 
GeneralRe: MSDN 2003 Pin
Ryan Binns20-Jul-03 15:48
Ryan Binns20-Jul-03 15:48 
GeneralRe: MSDN 2003 Pin
Toni7820-Jul-03 16:04
Toni7820-Jul-03 16:04 
GeneralRe: MSDN 2003 Pin
Ryan Binns20-Jul-03 16:31
Ryan Binns20-Jul-03 16:31 
GeneralRe: MSDN 2003 Pin
Atlantys20-Jul-03 16:57
Atlantys20-Jul-03 16:57 
GeneralRe: MSDN 2003 Pin
J. Dunlap20-Jul-03 20:08
J. Dunlap20-Jul-03 20:08 
GeneralControl Panel applet Pin
TSimoes20-Jul-03 11:35
TSimoes20-Jul-03 11:35 
GeneralTCP/IP Question Pin
arunkk20-Jul-03 11:32
arunkk20-Jul-03 11:32 
GeneralRe: TCP/IP Question Pin
Ilushka20-Jul-03 20:49
Ilushka20-Jul-03 20:49 
GeneralFindFiles Pin
pranavamhari20-Jul-03 9:27
pranavamhari20-Jul-03 9:27 
hi all,

Please see the function below, and let me know if there is something wrong.
It is working, but i don't know if this is the correct way.

void ListFiles(CString strFolder)
{
WIN32_FIND_DATA wfd;
HANDLE handle = FindFirstFile(strFolder+_T("\\*.*"),&wfd);

if(INVALID_HANDLE_VALUE != handle)
{
do
{
if(!(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
{
//do some thing with func
}


else
{
//check if it is . or ..
BOOL bIsDot = FALSE;
if (wfd.cFileName[0] == '.')
{
if (wfd.cFileName[1] == '\0' || (wfd.cFileName[1] == '.' && wfd.cFileName[2] == '\0'))
{
bIsDot = TRUE;
}
}
if(!bIsDot)
ListFiles(strFolder + _T("\\") + wfd.cFileName);
}

}while (FindNextFile(handle,&wfd));

FindClose( handle );
}


}

Hari Krishnan
GeneralRe: FindFiles Pin
John R. Shaw20-Jul-03 11:37
John R. Shaw20-Jul-03 11:37 
QuestionFree graphing library? Pin
Nathan Evans20-Jul-03 7:43
Nathan Evans20-Jul-03 7:43 
AnswerRe: Free graphing library? Pin
John R. Shaw20-Jul-03 11:40
John R. Shaw20-Jul-03 11:40 
GeneralIStream from CComVariant (Help!!!) Pin
yitzhak20-Jul-03 5:38
yitzhak20-Jul-03 5:38 

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.