Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1744 -Object class invalid for this container
Message
De
26/03/2002 10:33:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error 1744 -Object class invalid for this container
Divers
Thread ID:
00637255
Message ID:
00637255
Vues:
51
I have a rather simple OLEPUBLIC class that will not build when OLEPUBLIC is added. It returns error 1744, as per the title.

The text of this error says:
You have attempted to add a member object to a parent object with the AddObject method. It cannot be added because the member object's class cannot be a member of the parent's object class. For example, you cannot add a Grid object to a PageFrame object.

The first line of code is:
DEFINE CLASS ToXxxxxxx as Session OLEPUBLIC

and within that class definition I have the following line:
ADD OBJECT TimerPop as Timer (appears before any method code)
and later in the code there is a line:
ENDDEFINE
DEFINE CLASS TimerPop as Timer


The code does invoke PROCS that use wwIPSTUFF from WC, but the above line is my only known use of "Add Object" (not AddObject as stated in the error text).

Seems to me that I should be able to add a Timer object to a Session object. But this is my first ever attempt at something like this, so I likely misunderstand how things really work.

What am I doing wrong?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform