Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM with class based on OLECONTROL
Message
De
20/04/1999 12:58:12
 
 
À
20/04/1999 12:42:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00209596
Message ID:
00210180
Vues:
29
>>>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
>>
>>How did you subclass your object?
>
>In VFP i choose "New" - "Class"
>
>Base on "OleControl". In "Insert Object" window I choose "Create control" Microsoft Communication etc...
>
>>
>>Subclassed OLE Controls have to live in a OLEContainer control. So, subclass like this:
>>
>>DEFINE CLASS MyComm AS olecontrol
>> OleClass = "MSCOMMLib.MSComm.1"
>> MyCustomProperty = ""
>>ENDDEFINE
>
>Strange.. but i see in class browser code of this class I can see only
>
>DEFINE CLASS MyComm AS olecontrol
> Height = 100
> Width = 100
> Name = "new"
>ENDDEFINE
>
>Maybe I can't make it in VisualClass designer ?
>Thanks for your reply.

I don't know, I have never tried. Did you try the way I showed you?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform