Ik ben op het moment bezig om usenet-groepen in vb.net op te halen. Dat wil niet helemaal. Momenteel heb ik dit in mijn Form.Load handler gezet:
Maar hij geeft de volgende errors:
Dit komt vast doordat ik nog wat moet importen, maar wat??
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| Dim nntp As New NntpClient
nntp.Connect("news.myhost.com")
'Gets article IDs from the "myhost.info" newsgroup that have been added within the last month
Dim newids() As String = nntp.GetNewArticleIds("myhost.info", System.DateTime.Now.AddMonth(-1))
'Get each article as an object.
For Each articleId In newids
Dim message As UsenetMessage = nntp.RetrieveArticleObject(articleId)
'Display the subject.
Response.Write(message.Subject & "")
Next
nntp.Disconnect() |
Maar hij geeft de volgende errors:
code:
1
2
| Type 'NntpClient' is not defined. Name 'articleId' is not declared. |
Dit komt vast doordat ik nog wat moet importen, maar wat??