General information
Category:
COM/DCOM and OLE Automation
Title:
Error 1744 -Object class invalid for this container
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?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only