Information générale
Catégorie:
Contrôles ActiveX en VFP
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement