Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing MSComm Control
Message
 
 
À
17/07/2000 15:59:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00393493
Message ID:
00393627
Vues:
15
How are you trying to instantiate it? You have to add the OleCOntrol class to a form using AddObject() or NewObject(). It won;t instantiate otherwise.

>When trying to instantiate a subclass of the MSCommLib.MSComm control I get the following error: Object class is invalid for this container. Why can't I create a workable subclass of MSComm?
>
>The code below was extracted from the VFP class browser. When I
>looked at the properties sheet I did find the OleClass = MSCommLib.MSComm.1.
>
>
>DEFINE CLASS mscomm AS olecontrol
>
>
> Height = 100
> Width = 100
> Name = "mscomm"
>
>
> PROCEDURE Init
> SET TALK OFF
> SET RESOURCE OFF
> SET EXCLUSIVE OFF
> SET CPDIALOG OFF
> SET DELETED ON
> SET EXACT OFF
> SET SAFETY OFF
> SET REPROCESS TO 3 SECONDS
>
> *-- Force server into unattended mode
> SYS(2335,0)
> ENDPROC
>
>
>ENDDEFINE
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