I need to place a code to mscomm OnComm() event.
I have found that if I place to OnComm() event in a separate class and
add an instance of this class to form using
thisform.NEWOBJECT('oCom', 'mycomm','mycomlass.vcx')
OnComm() event does not fire!
However, if I place a MSCOMM OLEControl directly to form and place code to its OnComm() event, OnComm() event fires!
>Why don't you subclass this control and add it to the form at runtime if it's present on the computer?
>
>>I added an MSCOMM control to form in form designer.
>>I need that this control will not be created this control in not present on the user's computer.
>>
>>Is it sufficient to add
>>
>>RETURN .F.
>>
>>to init event of activex control in form to prevent error if this control is not present in user's computer ?
>>
>>I cannot test it in my computer since it is not possible to unregister mscomm control.
>>regrvr32 /u shows success but if I run the form, the control is registered automatically. Why?
Andrus