class reference problem

comp.databases.gupta (1995-2015)
Andrew Tanenbaum

class reference problem

Post by Andrew Tanenbaum » 03 Nov 2004, 15:07

 Posted by:  andrew.t...@katamail.com (Andrew Tanenbaum) 

I have this situation.

I defined a table window class "A" derived from cQuickTable
I defined a form window class "B" with inside an instance of class "A"

Form Window Class: B
...
Contents
A: myTable

When i create an instance of class "B" in my application, i connect
the table window as a cQuickTable and then i find several
automatically generated functions. Among them there is the function
_qoConstruct() with this code

Action
Set m_bIsWired = TRUE
cQuickTable._qoConstruct()

When i compile, it raises an error because myTable is not derived from
cQuickTable. If i modify the code like below

Action
Set m_bIsWired = TRUE
hWndForm.cQuickTable._qoConstruct()

It is all ok.

Why?

Return to “comp.databases.gupta”

Who is online

Users browsing this forum: [Ccbot] and 0 guests