Solution projet DLL et FORM
bonjour,
j'ai deux projet, une classe DLL et un form (ou consol). les deux projets sont ouvert dans la même solution.
mon problème c'est que ma fonction dans la classe n'est pas accessible dans mon form, voici mon erreur :
http://img11.hostingpics.net/pics/814614capture.png
j'ai pourtant bien rajouté en ressource mon projet et j'ai mis l'import : Imports clicktape.clik
voici mon code de classe DLL :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Public Class clik
Public Sub clickt(fichier As String)
Dim Fichiert As System.IO.StreamReader
Dim liststring As New List(Of String)
Dim fichsplit(3) As String
Fichiert = My.Computer.FileSystem.OpenTextFileReader(fichier)
Dim Ligne As String = Fichiert.ReadLine()
Do While Not Ligne Is Nothing
liststring.Add(Ligne)
Ligne = Fichiert.ReadLine()
Loop
Fichiert.Close()
End Sub
End Class |
et voici mon code la en console pour aller plus vite :
Code:
1 2 3 4 5 6 7 8 9 10
| Imports clicktape.Clik
Module Module1
Sub Main()
clickt("fichier")
End Sub
End Module |
ce que je pige pas c'est quand console il me propose bien ma sub mais elle est en erreur...
merci pour votre aide