Results 1 to 2 of 2

Thread: [2005]GetData Trouble

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    24

    [2005]GetData Trouble

    I can't get getdata to work. It gives me the error "Variable 'Data' is passed by reference before it is assigned a value." What is wrong with it?

    Code:
        Private Sub ServerSocket_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles ServerSocket.DataArrival
            Dim Data As String
            ServerSocket.GetData(Data)
            serverlogtxt.Text = serverlogtxt.Text & "[" & Now.ToLongTimeString & "]" & Data
        End Sub

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: [2005]GetData Trouble

    If this is .NET you shouldn't be using the Winsock control you should be using the sockets class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width