General information
Category:
ActiveX controls in VFP
Hi Larry:
Thanks for your reply. Very interesting comments.
Before I try this, however, I'd like to qualify some points, if you don't mind.
This is what I my present code looks like regarding MSComm32:
oComm = CREATEOBEJCT("MSCommLib.MSComm.1")
goVFPCOM.BindEvents(.oComm,THISFORM)
*In THISFORM I have a OnComm property.
Now, are you suggesting that I abandon the above "bindevents" and directly use the control (MSComm32) in THISFORM? ...or.. Is this to use my code AS IS but just add MSComm32 as a control in THISFORM but do nothing with it?
TIA
>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only