>When I put MSComm OCX into my form, VFP5.0 displayed a error dialog "OLE error code 0x80040112:Appropriate license for this class not found".Is there any one know what it mean? I can't put this OCX into my form but the other OCX can run normally.
There are two licences for a automation control, runtime and design.
It's possible that the installation process didn't register the control properly.
It's also possible you don't have the "right" version of the control installed.
Did you upgrade from 3.0 to 5.0 in the same directory without uninstalling 3.0 first?
Are running both 3.0 and 5.0 on the same computer in different directories?
Have you installed Visual Basic Control Creation Edition or any other Microsoft beta products downloaded from the web?
--- If it's just a VFP 5 installation then this might help.
Are you sure it's MSComm.OCX and not MSComm32.OCX?
You will need the 32 bit control I expect, at least that's what is installed on my system here.
In Windows 95 (I don't know about NT, sorry) you can use the EXPLORER to look in C:\WINDOWS\SYSTEM and find two files, the MSComm32.OCX and REGSVR32.EXE.
Simply DRAG the MSComm32.OCX file and DROP its icon on top of the icon for REGSVR32.EXE and you should see a dialog informing you:
"DllRegisterServer32 in C:\WINDOWS\SYSTEM\MSComm32.OCX succeeded"
Which should now install the control properly.