Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmaps Pin
aroraavinash11-Dec-03 9:32
aroraavinash11-Dec-03 9:32 
GeneralRe: Bitmaps Pin
aroraavinash11-Dec-03 9:43
aroraavinash11-Dec-03 9:43 
GeneralRe: Bitmaps Pin
David Crow11-Dec-03 10:26
David Crow11-Dec-03 10:26 
Generalfile manager Pin
thes3cr3t111-Dec-03 6:52
thes3cr3t111-Dec-03 6:52 
GeneralRe: file manager Pin
David Crow11-Dec-03 9:01
David Crow11-Dec-03 9:01 
GeneralRe: file manager Pin
thes3cr3t111-Dec-03 11:01
thes3cr3t111-Dec-03 11:01 
GeneralRe: file manager Pin
David Crow12-Dec-03 2:41
David Crow12-Dec-03 2:41 
GeneralRe: file manager Pin
thes3cr3t112-Dec-03 5:40
thes3cr3t112-Dec-03 5:40 
yes very much like that here is what it looks like,

{
string filebuff;
WIN32_FIND_DATA FindFileData;
HANDLE hFind;

hFind=FindFirstFile(Directory.c_str(), &FindFileData);

do{

if( FindFileData.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY )
filebuff += "dir";
if( FindFileData.dwFileAttributes == FILE_ATTRIBUTE_HIDDEN )
filebuff += "Hidden";
if( FindFileData.dwFileAttributes == FILE_ATTRIBUTE_COMPRESSED )
filebuff += "Compressed";
if( FindFileData.dwFileAttributes == FILE_ATTRIBUTE_SYSTEM )
filebuff += "System";
if( FindFileData.dwFileAttributes == FILE_ATTRIBUTE_ENCRYPTED )
filebuff += "Encrypted";
else

filebuff +=("%*s", 30, FindFileData.cFileName);
filebuff += "\n" ;

}while ( FindNextFile(hFind, &FindFileData) );
//do something//
return 0;
}

i hope this gives a better understanding of what i might be doing wrong here,
my only thought was that i was missing out a file artribute that i didnt know about,there is no reason why "Program Files" isnt shown as a directory after all it is a directory isnt it,even if program files was hidden,it should stil show up as a directory too shouldnt it?
this code is what i took from my source,as im a n00b if ya spot any mistakes please lemmi know,thanks again 4 ya time.


chris
GeneralRe: file manager Pin
David Crow12-Dec-03 5:44
David Crow12-Dec-03 5:44 
GeneralRe: file manager Pin
thes3cr3t112-Dec-03 6:00
thes3cr3t112-Dec-03 6:00 
QuestionHow to create buttons on the video Pin
Chinnaa Ganesh Kumar11-Dec-03 6:40
Chinnaa Ganesh Kumar11-Dec-03 6:40 
GeneralParent and child dialog, GetWindowRect() Pin
J.B.11-Dec-03 5:29
J.B.11-Dec-03 5:29 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
georgiek5011-Dec-03 5:50
georgiek5011-Dec-03 5:50 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
J.B.11-Dec-03 15:26
J.B.11-Dec-03 15:26 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
georgiek5011-Dec-03 16:17
georgiek5011-Dec-03 16:17 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
J.B.11-Dec-03 16:39
J.B.11-Dec-03 16:39 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
georgiek5011-Dec-03 18:33
georgiek5011-Dec-03 18:33 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
J.B.12-Dec-03 16:39
J.B.12-Dec-03 16:39 
GeneralRe: Parent and child dialog, GetWindowRect() Pin
J.B.12-Dec-03 17:18
J.B.12-Dec-03 17:18 
GeneralProper way to process messages to modeless dialogs Pin
georgiek5011-Dec-03 5:22
georgiek5011-Dec-03 5:22 
GeneralUpper case Pin
Anonymous11-Dec-03 5:17
Anonymous11-Dec-03 5:17 
GeneralRe: Upper case Pin
valikac11-Dec-03 6:04
valikac11-Dec-03 6:04 
GeneralRe: Upper case Pin
Anonymous11-Dec-03 6:46
Anonymous11-Dec-03 6:46 
GeneralRe: Upper case Pin
Joe Woodbury11-Dec-03 6:59
professionalJoe Woodbury11-Dec-03 6:59 
GeneralSend virtual Ctrl-Alt-Del Pin
Albert Jann11-Dec-03 5:07
Albert Jann11-Dec-03 5:07 

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.