Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSCommLib.MSComm.1?
Message
 
 
À
04/01/2001 00:11:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00459230
Message ID:
00459233
Vues:
31
>Hi All
>
>I created an application using MSComm32.OCX. All works fine on my developement machine (w/Visual Studio loaded). MSComm32.OCX is instantiated as oComm = CREATEOBEJCT("MSCommLib.MSComm.1") in the application.
>
>However, when I install my application on another machine (a workstation w/o Visual Studio) and I copying MSComm32.OCX to the workstation's C:\Windows\System directory, I get an "Appropriate license for this class not found" error. I've also tried REGSCR32 C:\WINDOWS\SYSTEM\MSCOMM32.OCX but to no avail.
>
>License for MSComm32.OCX? Is this correct?
>
>Any advice would be appreciated.
>
>TIA

When you create an ActiveX control via Createobject/Newobject, the new object believes it is being created in the development environment. If that is the case then it looks for the appropriate license file. In this case, MSCOMM32 looks for the appropriate registry entries because it doesn't use LIC files.

In order to alleviate this, you need to add a MSCOMM32 control to a form. This way, if registered properly (e.g. using regsvr32), it won;t look for the license information because it will believe it is be distributed in a run-time capacity.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform