Prawdziwe oblicze Informatyki. Tysiące linijek kodu i kompilatory które nigdy nie wybaczają.
Awatar użytkownika

Venetik

Posty: 33
Rejestracja: 04 lip 2010, 22:29
    Windows XP Firefox

Post05 sty 2011, 18:38

Dodam tu, bo na mx odpowiedzi nie otrzymam:
Kod:

Kod: Zaznacz cały

ResponseStream = [b]Response.GetResponseStream[/b] (1)
            Reader = [b]New StreamReader(ResponseStream, System.Text.Encoding.UTF8)[/b] (2)
            Dim Line As String

Zaznaczone linijki powoduja następujące błędy:

Kod:

Kod: Zaznacz cały

(1).   Value of type 'System.IO.Stream' cannot be converted to 'System.IO.StreamReader'.

(2).   Overload resolution failed because no accessible 'New' can be called with these arguments:
    'Public Sub New(path As String, encoding As System.Text.Encoding)': Value of type 'System.IO.StreamReader' cannot be converted to 'String'.
    'Public Sub New(path As String, detectEncodingFromByteOrderMarks As Boolean)': Value of type 'System.IO.StreamReader' cannot be converted to 'String'.
    'Public Sub New(path As String, detectEncodingFromByteOrderMarks As Boolean)': Value of type 'System.Text.Encoding' cannot be converted to 'Boolean'.
    'Public Sub New(stream As System.IO.Stream, encoding As System.Text.Encoding)': Value of type 'System.IO.StreamReader' cannot be converted to 'System.IO.Stream'.
    'Public Sub New(stream As System.IO.Stream, detectEncodingFromByteOrderMarks As Boolean)': Value of type 'System.IO.StreamReader' cannot be converted to 'System.IO.Stream'.
    'Public Sub New(stream As System.IO.Stream, detectEncodingFromByteOrderMarks As Boolean)': Value of type 'System.Text.Encoding' cannot be converted to 'Boolean'.
o co może chodzić?
Obrazek

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 6 gości