Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mirage File - Compile Error
#1
Right, it's been a very long time since I've looked at any code and the first issue I have come across is this.

Compile Error:
Method or Data Member not found.


This occurs when I try to compile run the client.

This issue occurs when running the below code and I've highlighted where the fault starts.

Code:
Public Sub TcpInit()

    ' used for parsing packets
    SEP_CHAR = vbNullChar ' ChrW$(0)
    END_CHAR = ChrW$(237)
    
   ' check if IP is valid
    If IsIP(GAME_IP) Then
        frmMirage.Socket.RemoteHost = GAME_IP
        frmMirage.Socket.RemotePort = GAME_PORT
    Else
        MsgBox GAME_IP & " does not appear as a valid IP address!"
        DestroyGame
    End If
        
End Sub

This is what Visual Basic highlights

Code:
frmMirage.Socket.RemoteHost = GAME_IP
This is most likely a simple problem that loads of people have fixed and maybe the answer is already on this forum but through my searching I have only seen one post similar.

Their problem was that the server did not have a Winsock object. Mine does, and I am also using MS4 ( well MS 3.76 ).

If anyone could help me out, I'd really appreciate it.

Thanks.



-Lochie
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)