|
-
Jul 11th, 2009, 03:07 AM
#1
Thread Starter
Addicted Member
[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 .
-
Jul 11th, 2009, 09:22 AM
#2
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.
-
Jul 11th, 2009, 12:21 PM
#3
Thread Starter
Addicted Member
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
-
Jul 11th, 2009, 12:30 PM
#4
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.
-
Jul 11th, 2009, 12:42 PM
#5
Thread Starter
Addicted Member
Re: exception "CTL_E_GETNOTSUPPORTED"
What else i can use instead of COMM for data transfer between computers using a dial up modem ?
-
Jul 11th, 2009, 05:23 PM
#6
Re: exception "CTL_E_GETNOTSUPPORTED"
-
Jul 19th, 2009, 04:39 AM
#7
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|