Solved

Urgent Help Needed

Posted on 2004-09-29
4
603 Views
Last Modified: 2007-12-19
Is there anyway to solve this error?

Error msg: 'State' is a type in 'AxMSWinsockLib.AxWinsock' and cannot be used as an expression.

 Private Sub wsSend_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles wsSend.ConnectionRequest
        If wsSend.State <> MSWinsockLib.StateConstants.sckClosed Then
            wsSend.Close()
        End If

        wsSend.Accept(e.requestID)

        If wsSend.State = MSWinsockLib.StateConstants.sckConnected Then
            Call WsSendConnected()
        End If
    End Sub


thank you!
0
Comment
Question by:loverbear84
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 125 total points
ID: 12187101
Change your code to this:

Private Sub wsSend_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles wsSend.ConnectionRequest
        If wsSend.CtlState <> MSWinsockLib.StateConstants.sckClosed Then
            wsSend.Close()
        End If

        wsSend.Accept(e.requestID)

        If wsSend.CtlState = MSWinsockLib.StateConstants.sckConnected Then
            Call WsSendConnected()
        End If
    End Sub

I hope this could help you :)
0
 

Author Comment

by:loverbear84
ID: 12187194
thank for ur immediate response
the code work.
Do you have the code on how to send and recieve file from pda to pc and vice versa though gsm/gprs but not web based type. Do you have any example cos really need it urgently, i will increase the point if gd solution is given
thank alot

0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12187320
Well, is important to know that is an only question per discussion if not be at that way... all of us would do a lot of questions and don't giving any points...
0
 
LVL 4

Expert Comment

by:eozz_2000
ID: 12187326
sorry if this upset you but... the people like to receive points for their good answers :)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now