pointer to object Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
pichlik
In need of some credit
In need of some credit
Posts: 6
Joined: Wed Feb 09, 2011 5:41 am

pointer to object

Post by pichlik » Sun Jan 22, 2012 10:05 pm

Hi,
I can not figure out how to make in the instance of my class "class SpravaXML" settings object in the application window "class CNCToolFrame: public wxFrame"


CNCToolFrame in class: public wxFrame "I added" friend class SpravaXML "
in an instance of class "SpravaXML" call
CNCToolFrame: ListBox2-> Append ("xyz"), and a message appears compiler

error: object missing in reference to 'CNCToolFrame: ListBox2'

I think it's because of CNCToolFrame instance, created in CNCToolApp:: OnInit () is already canceled.

How can I set the properties of individual components of windows from another class?

thanks

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: pointer to object

Post by Auria » Mon Jan 23, 2012 1:48 am

Sorry, this is a little hard to follow; could you post some relevant code and the full error message and point to the line where this error occurs?
"Keyboard not detected. Press F1 to continue"
-- Windows

pichlik
In need of some credit
In need of some credit
Posts: 6
Joined: Wed Feb 09, 2011 5:41 am

Re: pointer to object

Post by pichlik » Mon Jan 23, 2012 5:27 am

Thank you for responding, I just removed the error.

I used
wxTheApp-> PointerToFrame-> ListBox2-> Append ("xyz");

Proper use is
wxGetApp (). PointerToFrame-> ListBox2-> Append ("xyz");

I thought of a method wxTheApp wxGetApp () are equivalent.

Muetdhiver
Super wx Problem Solver
Super wx Problem Solver
Posts: 323
Joined: Sun Jun 08, 2008 11:59 am
Location: Bordeaux, France

Re: pointer to object

Post by Muetdhiver » Mon Jan 23, 2012 10:30 am

Really hard to understand you...

Could you mark this thread as solved please....
OS: Ubuntu 11.10
Compiler: g++ 4.6.1 (Eclipse CDT Indigo)
wxWidgets: 2.9.3

Post Reply