Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / invalid conversion from `wxMDIChildFrame*' to OfficeChild*

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. invalid conversion from `wxMDIChildFrame*' to OfficeChild*
#2601
Posted by: HeReSY 2003-09-05 18:36:36
I have derived the class OfficeChild from the wxMDIChildFrame.

Now I want to change the view of this frame.
when i call the function
OfficeChild* child = GetActiveChild();
I get this error from the compiler.
Can somebody help me?

HeReSY

Message2. Re: invalid conversion from `wxMDIChildFrame*' to OfficeChild*
#2605
Posted by: Ktirf 2003-09-06 22:08:58
The problem is quite obvious. GetActiveChild() returns wxMDIChildFrame *, not OfficeChild *. You should perform an explicit type cast.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥287.00 ·
 
 
¥1,380.00 ·
 
 
¥950.00 ·
 
 
 
 
¥470.00 ·
 
 
¥288.00 ·
© Wed 2024-11-6  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0