Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Vb6 'Method or data member not found' (SOLVED)


Dragen
 Share

Recommended Posts

I posted this in the eclipse source forum earlier, but on second thoughts I might get a better response here.

Okay I'm having trouble compiling the source code for the client.
Every time I try it throws up this error:
@vb:

> Compile error:
>
> Method or data member not found

Highlighting '**Remote Host**' in this section of the modClientTCP module:
```
Sub TcpInit()
    SEP_CHAR = Chr(0)
    END_CHAR = Chr(237)
    PlayerBuffer = vbNullString

    Dim FileName As String
    FileName = App.Path & "\config.ini"

    frmMirage.Socket.RemoteHost = ReadINI("IPCONFIG", "IP", FileName)
    frmMirage.Socket.RemotePort = val#(ReadINI("IPCONFIG", "PORT", FileName))
End Sub
```
I'm very new to vb so I can't figure out what's causing the problem.
I do have the winsock control installed and I know that RemoteHost is a member of winsock from looking up winsock in the object browser (and also because it's fairly obvious).
From my (in)experience with with vb I'm assuming that, for some reason, it's not detecting the winsock control properly even though it is installed on the project.
If I remove the line throwing out the error it gives another error for the next line (on RemotePort), so it's definitly something with the winsock component.

Thanks for any help!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...