Click here to Skip to main content
15,900,461 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Speed comparation VB6 vs. C# Pin
Fedor Hajdu22-Nov-06 21:41
professionalFedor Hajdu22-Nov-06 21:41 
QuestionHow can i call C# interface function from C++ ( visual 6 ) application ? Pin
Yanshof22-Nov-06 0:54
Yanshof22-Nov-06 0:54 
AnswerRe: How can i call C# interface function from C++ ( visual 6 ) application ? Pin
Rob Graham22-Nov-06 5:47
Rob Graham22-Nov-06 5:47 
GeneralRe: How can i call C# interface function from C++ ( visual 6 ) application ? Pin
Yanshof22-Nov-06 6:23
Yanshof22-Nov-06 6:23 
QuestionControlling the focus in WindowsForms Pin
Dobromir Dimitrov21-Nov-06 23:31
Dobromir Dimitrov21-Nov-06 23:31 
QuestionList of forms in project Pin
Rudi Groenewald21-Nov-06 19:01
Rudi Groenewald21-Nov-06 19:01 
AnswerRe: List of forms in project Pin
Ed.Poore22-Nov-06 3:59
Ed.Poore22-Nov-06 3:59 
QuestionDirectoryInfo.GetDirectories exception Pin
CPP_Student21-Nov-06 14:44
CPP_Student21-Nov-06 14:44 
I am doing one of the Suggested Practices for the MCTS 70-536 exam prep book. The chapter 2 practice asks you to create an app that will search a drive for a particular file. So, I am trying to write a routine to search the c: drive for a file, but am having a problem with this:

DirectoryInfo[] dirs = dirInfo.GetDirectories("*.*", SearchOption.AllDirectories);

On this instruction it churns for a bit and then throws a System.UnauthorizedAccessException, and the Message of the exception is "Access to the path 'c:\System Volume Information' is denied."

If I change it to:

DirectoryInfo[] dirs = dirInfo.GetDirectories();

and recursively call the routine to search each subdirectory instead, it may find the file before the exception occurs, depending on what filename I give it. So, I cannot see how one could search a hard drive for a file using .NET.

Can anyone please help with this??

TIA
AnswerRe: DirectoryInfo.GetDirectories exception Pin
Ed.Poore22-Nov-06 4:03
Ed.Poore22-Nov-06 4:03 
GeneralRe: DirectoryInfo.GetDirectories exception Pin
CPP_Student22-Nov-06 11:45
CPP_Student22-Nov-06 11:45 
GeneralRe: DirectoryInfo.GetDirectories exception Pin
Ed.Poore22-Nov-06 12:24
Ed.Poore22-Nov-06 12:24 
GeneralRe: DirectoryInfo.GetDirectories exception Pin
CPP_Student22-Nov-06 12:45
CPP_Student22-Nov-06 12:45 
GeneralRe: DirectoryInfo.GetDirectories exception Pin
Ed.Poore22-Nov-06 13:21
Ed.Poore22-Nov-06 13:21 
GeneralRe: DirectoryInfo.GetDirectories exception Pin
CPP_Student22-Nov-06 13:50
CPP_Student22-Nov-06 13:50 
Questiontextbox multi line Pin
biaali21-Nov-06 6:57
biaali21-Nov-06 6:57 
AnswerRe: textbox multi line Pin
Leah_Garrett21-Nov-06 16:39
Leah_Garrett21-Nov-06 16:39 
GeneralRe: textbox multi line Pin
biaali23-Nov-06 0:08
biaali23-Nov-06 0:08 
QuestionDatagrid in vc++.net Pin
haritha2221-Nov-06 6:51
haritha2221-Nov-06 6:51 
AnswerRe: Datagrid in vc++.net Pin
Paul Conrad25-Dec-06 18:43
professionalPaul Conrad25-Dec-06 18:43 
QuestionHow to generate dynamically proxy for some classes ? Pin
vgrigor121-Nov-06 3:20
vgrigor121-Nov-06 3:20 
GeneralFIX: An application that is based on the .NET Framework 2.0 may crash unexpectedly Pin
Leftyfarrell21-Nov-06 2:48
Leftyfarrell21-Nov-06 2:48 
GeneralRe: FIX: An application that is based on the .NET Framework 2.0 may crash unexpectedly Pin
Kevin McFarlane21-Nov-06 23:49
Kevin McFarlane21-Nov-06 23:49 
Questionthe server returned an invalid or unrecognized response Pin
radixpune21-Nov-06 2:12
radixpune21-Nov-06 2:12 
AnswerRe: the server returned an invalid or unrecognized response Pin
Paul Conrad27-Dec-06 18:03
professionalPaul Conrad27-Dec-06 18:03 
QuestionSmart Device Application in VS 2005 Pin
Irs_ahmad20-Nov-06 20:54
Irs_ahmad20-Nov-06 20:54 

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.