Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM with class based on OLECONTROL
Message
De
19/04/1999 08:56:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00209596
Message ID:
00209619
Vues:
24
>>Hello,All!
>>I try to make the class Base on Microsoft Communication Control (Activex)
>>When I try to make oApp.oModem = CREATEOBJECT ('ClassBasedOnMSCOMM')
>>I receive error message
>>" Object class is invalid for this container "
>>But possibility to make the class on a basis MSCOMM is... In what a problem?
>>Thanks.
>>Denis
>
>I had a similar problem with MAPI controls - gave the same error. I think it was when I was using ADDOBJECT. Try creating in a variable (loModem=CREATEOBJECT...) see if this works.

Hello.
If I using memory variable a receive same error...
When I use loModem = CREATEOBJECT('MSCOMMLib.MSComm.1') it is works good...
But I want create object on my class based on this activeX controls...
My "oApp" object is Custom class. It is no container class. I want to store to the "oModem" property of this class the MSCOMM object for using in many forms in application without overloading control... Of course,I can to use this control in each forms and set properties for this in each form and copy code, but I want to have one object.
Thank.
Denis.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform