error in Visual Basic.net

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
 
H

Herfried K. Wagner [MVP]

* =?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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top