Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Embedded *.chm help file Pin
nike_arh1-Mar-08 23:23
nike_arh1-Mar-08 23:23 
GeneralRe: Embedded *.chm help file Pin
Giorgi Dalakishvili1-Mar-08 23:32
mentorGiorgi Dalakishvili1-Mar-08 23:32 
GeneralRe: Embedded *.chm help file Pin
nike_arh1-Mar-08 23:38
nike_arh1-Mar-08 23:38 
GeneralRe: Embedded *.chm help file Pin
Giorgi Dalakishvili1-Mar-08 23:42
mentorGiorgi Dalakishvili1-Mar-08 23:42 
GeneralRe: Embedded *.chm help file Pin
nike_arh2-Mar-08 0:17
nike_arh2-Mar-08 0:17 
GeneralRe: Embedded *.chm help file Pin
Giorgi Dalakishvili2-Mar-08 4:59
mentorGiorgi Dalakishvili2-Mar-08 4:59 
QuestionOh Sheesh ... how do you pass objects as parameters? Pin
Jammer1-Mar-08 12:07
Jammer1-Mar-08 12:07 
AnswerRe: Oh Sheesh ... how do you pass objects as parameters? Pin
Christian Graus1-Mar-08 12:13
protectorChristian Graus1-Mar-08 12:13 
Jammer wrote:
Your going to get sick of me soon!


No, you're asking clear questions, posting code, and asking in the right place. I say bring it on !!!


Jammer wrote:
public static object ScanDirectories(string scanEntryPoint)


Why are you returning object and not List<FileEntry> ?


Jammer wrote:
SingleDirectoryFileStore.Add(new FileEntry(fileName, fileSize, fileExt, fileCreated));


I think I answered this once before. You're creating the list as a local variable. You need to either pass it into GetDirectoryFiles ( so it exists there, it will be passed by reference ), or you need to make it a member variable. You say you've tried to pass it in, why did that not work ? What error did you get ? As the method is static, adding it as a static member variable seems like it would be harmless, just clear it at the top of ScanDirectories. Then you could also cache the result, if the same scanEntryPoint is passed in a second time, you could pass back the result without scanning again, if that was appropriate ( this would mean adding a static string to store the last scanEntryPoint )

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Oh Sheesh ... how do you pass objects as parameters? Pin
Jammer1-Mar-08 12:25
Jammer1-Mar-08 12:25 
GeneralRe: Oh Sheesh ... how do you pass objects as parameters? Pin
Christian Graus1-Mar-08 12:56
protectorChristian Graus1-Mar-08 12:56 
GeneralRe: Oh Sheesh ... how do you pass objects as parameters? Pin
Jammer1-Mar-08 13:07
Jammer1-Mar-08 13:07 
GeneralRe: Oh Sheesh ... how do you pass objects as parameters? Pin
Christian Graus1-Mar-08 13:34
protectorChristian Graus1-Mar-08 13:34 
QuestionHow to run application after login before explorer.exe runs? Pin
yasa1-Mar-08 10:21
yasa1-Mar-08 10:21 
GeneralRe: How to run application after login before explorer.exe runs? Pin
Christian Graus1-Mar-08 10:32
protectorChristian Graus1-Mar-08 10:32 
GeneralRe: How to run application after login before explorer.exe runs? Pin
PIEBALDconsult1-Mar-08 16:24
mvePIEBALDconsult1-Mar-08 16:24 
GeneralRe: How to run application after login before explorer.exe runs? Pin
User 23822921-Mar-08 18:10
User 23822921-Mar-08 18:10 
GeneralContext Menu Strips Pin
MarkMokris1-Mar-08 4:53
MarkMokris1-Mar-08 4:53 
AnswerRe: Context Menu Strips Pin
Eslam Afifi1-Mar-08 10:41
Eslam Afifi1-Mar-08 10:41 
GeneralSemi-Transparent Form Click Pass-Through Pin
User 127821-Mar-08 4:10
User 127821-Mar-08 4:10 
GeneralRe: Semi-Transparent Form Click Pass-Through Pin
mav.northwind1-Mar-08 6:02
mav.northwind1-Mar-08 6:02 
GeneralRe: Semi-Transparent Form Click Pass-Through Pin
User 127824-Mar-08 17:09
User 127824-Mar-08 17:09 
QuestionC# Pin
Nath1-Mar-08 0:15
Nath1-Mar-08 0:15 
GeneralRe: C# Pin
yogesh_kumar_agarwal1-Mar-08 0:28
yogesh_kumar_agarwal1-Mar-08 0:28 
GeneralRe: C# Pin
Luc Pattyn1-Mar-08 0:49
sitebuilderLuc Pattyn1-Mar-08 0:49 
JokeRe: C# Pin
Xmen Real 1-Mar-08 2:32
professional Xmen Real 1-Mar-08 2:32 

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.