winsock troubles
winsock troubles
winsock troubles
winsock troubles
winsock troubles
winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles
winsock troubles winsock troubles
winsock troubles
Go Back  Xtreme Visual Basic Talk > > > winsock troubles


Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2004, 01:19 AM
14yrsgirl 14yrsgirl is offline
Junior Contributor
 
Join Date: Dec 2003
Posts: 226
Default winsock troubles


could anybody take a look at my project as this is the first time i have used winsock and i am having trouble with it.
sometimes it errors out straight away and sometimes you can play for a minute then it errors out, maybe one of you winsock gurus could point out the error please.

thank you.
casey.
Attached Files
File Type: zip connect 4.zip (5.0 KB, 5 views)
Reply With Quote
  #2  
Old 12-20-2004, 02:07 AM
eXeption's Avatar
eXeption eXeption is offline
Junior Contributor
 
Join Date: Aug 2004
Location: India
Posts: 270
Default

The error probably you will see is
"Runtime error 13 - Type Mismatch"

this is because the client/host sends
Code:
Case 3080 To 3480 drop 38, 3 strtext = "38,3)"
at a purticular instance in the Form_MouseDown event.
then the host/client on recieving this data tries to parse it and the following occures
CInt("3)") in the statement drop CInt(d(0)), CInt(d(1))
This causes the error.

Change it to
Code:
Case 3080 To 3480 drop 38, 3 strtext = "38,3" ' remove the )
Hoping this was your problem!
__________________
"I think; therefore I am."
Reply With Quote
  #3  
Old 12-20-2004, 11:21 AM
14yrsgirl 14yrsgirl is offline
Junior Contributor
 
Join Date: Dec 2003
Posts: 226
Default

thank you so much eXeption, how it got in there in the first place is beyond me but well spotted.

thank you.
casey.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
winsock troubles
winsock troubles
winsock troubles winsock troubles
winsock troubles
winsock troubles
winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles winsock troubles
winsock troubles
winsock troubles
 
winsock troubles
winsock troubles
 
-->