Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading and Writing to a Serial Port
Message
From
08/02/1999 19:07:34
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00184838
Message ID:
00185352
Views:
33
>Hi Ed.
>
>I am attempting to the MSCOMM... is there a SET CLASSLIB command before the Createobj. What is the format for that?
>
>>oComm = CREATEOBJ('MSCOMMLib.MSComm')
>>oComm.CommPort = 1
>>oComm.Settings = '9600,N,8,1'
>>oComm.InputLength = 0
>>oComm.PortOpen = .T.

No - you have to have the MSCOMM32.OCX (MS Communication Control Version 5.0 SP2 is what I'm using) installed on the system; the Version Independent ProgID is MSCOMMLib.MSComm, which is what is being instantiated by CREATEOBJ() here. No tickee, no washee...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform