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 » U++ Library support » U++ Widgets - General questions or Mixed problems » How to call instance in main.cpp
Re: How to call instance in main.cpp [message #5133 is a reply to message #5132] Wed, 06 September 2006 18:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
Well, sure, but you cannot take that literally. "Not use globals" recommendation is for beginner coders that tend to overuse them.

Also not that AfxGetApp is no better, it is simply a global in disguise. If you really need / want to make things independent of global issues, you have to propagate your database as reference in dependant sub-ctrls.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: always-on-top window
Next Topic: StaticRect blocks mouse events - deliberate?
Goto Forum:
  


Current Time: Mon Jun 17 04:30:48 CEST 2024

Total time taken to generate the page: 0.02455 seconds