dcsimg
Results 1 to 7 of 7

Thread: [RESOLVED] exception "CTL_E_GETNOTSUPPORTED"

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    140

    Resolved [RESOLVED] exception "CTL_E_GETNOTSUPPORTED"

    HI,
    I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer
    Code:
    Text1.Text = "Test string from App1 "
            Number$ = InputBox$("Enter phone number:", "Number$")
            If Number$ = "" Then Exit Sub
            Temp$ = Status
               Status = "Dialing - " + Number$
            DialString$ = "ATDT" + Number$ + ";" + vbCr
    
            On Error Resume Next
            If MSComm1.PortOpen = False Then
                MSComm1.CommPort = 4
                MSComm1.Settings = "9600,N,8,1"
                MSComm1.PortOpen = True
                MSComm1.RThreshold = 1
                MSComm1.RTSEnable = True
                MSComm1.SThreshold = 1
                'MSComm1.Handshaking = MSCommLib.HandshakeConstants.comRTS
            End If
    
            MSComm1.Output = DialString$
            Do
         
                Temp$ = Temp$ & MSComm1.Input
                          If InStr(Temp$, "NO DIALTONE" & vbCrLf) Then
                    End
                End If
            Loop Until InStr(Temp$, "OK" & vbCrLf)
    
                       MSComm1.Output = Text1.Text
    But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text Can you please tell me what may be reason for this .

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    104,705

    Re: exception "CTL_E_GETNOTSUPPORTED"

    The error says that the GET operation is not supported so presumably the underlying COM object doesn't support getting the Output property value or something that it depends on.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    140

    Post Re: exception "CTL_E_GETNOTSUPPORTED"

    But how this is happened in the given code. Any reason which will help me to find out the reason

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    104,705

    Re: exception "CTL_E_GETNOTSUPPORTED"

    I'm not familiar with the COM component your using but, regardless, I just realised that you're setting Output, not getting it. I have to say that I really don't know what the issue is but it's just another reason not to use COM, if you can avoid it.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    140

    Post Re: exception "CTL_E_GETNOTSUPPORTED"

    What else i can use instead of COMM for data transfer between computers using a dial up modem ?

  6. #6

    Re: exception "CTL_E_GETNOTSUPPORTED"

    Sockets maybe?

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2009
    Posts
    140

    Resolved Re: exception "CTL_E_GETNOTSUPPORTED"


    The error was with the inital setting of the port.
    By modifying the same, i am able to do the data transfer

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width