dbTalk Databases Forums  

class reference problem

comp.databases.gupta comp.databases.gupta


Discuss class reference problem in the comp.databases.gupta forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrew Tanenbaum
 
Posts: n/a

Default class reference problem - 11-03-2004 , 08:07 AM






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?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.