error in Visual Basic.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I keep getting this com error Unknown error (0x80005000) when I get to the for statement in this block of code. Anyone know how to fix it. Thanks

Dim loDirectory As DirectoryEntry
Dim loChild As DirectoryEntry
loDirectory = New DirectoryEntry("D:\Unread Tracks"
For Each loChild In loDirectory.Children
Next loChild
 
* =?Utf-8?B?YmJkb2J1ZGR5?= said:
I keep getting this com error Unknown error (0x80005000) when I get to the for statement in this block of code. Anyone know how to fix it. Thanks

Dim loDirectory As DirectoryEntry
Dim loChild As DirectoryEntry
loDirectory = New DirectoryEntry("D:\Unread Tracks"
For Each loChild In loDirectory.Children
Next loChild

Where are you getting this error? When editing the code or when running
the code? Your code won't compile...
 
Back
Top