|
-
Jun 17th, 2010, 06:20 AM
#1
Thread Starter
Junior Member
Problem in Writing to a Serial Port Using Mscomm32.ocx control
Hi,
In my windows application I am using Mscomm32.ocx control for serial communication.
I set the control properties like below in the Form1_Load event.
AxMSComm1.CommPort = 1
AxMSComm1.Settings = "9600,N,8,1"
AxMSComm1.InputLen = 0
AxMSComm1.PortOpen = True
AxMSComm1.SThreshhold=1
AxMSComm1.RThreshhold=1
I did the same way as mentioned in the following link.
http://support.microsoft.com/kb/139526/en-us
But I am getting the following error when I try to write data to a serial port using output method.
AxMSComm1.Output {"Exception from HRESULT: 0x800A018A (CTL_E_GETNOTSUPPORTED)"} Object
Please tell me why I am getting this error and how to resolve this???
Thanks in advance.
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
|