Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Visibility of objects.
Re: Visibility of objects. [message #28784 is a reply to message #28763] Thu, 16 September 2010 16:48 Go to previous messageGo to previous message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Actually it is a question related to C++: if you have different classes, each of them with their .h and .cpp files, how to make them “visible” each other. I have implemented pointers, to point each other. Instead of cross-include their .h files, I have included a forward class declaration; in their .cpp I have cross-included the .h file.

I have no idea whether there are better/more elegant/efficient ways to do it. Any thought?

Cheers,

Javier
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl and Docking: do they work together as expected?
Next Topic: Debugger: access to global variables.
Goto Forum:
  


Current Time: Sat May 11 14:25:18 CEST 2024

Total time taken to generate the page: 0.03035 seconds