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 » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » Untrivial EditString bug(?) in FreeBSD(and may be all POSIX)
Re: Untrivial EditString bug(?) in FreeBSD(and may be all POSIX) [message #21461 is a reply to message #20772] Thu, 21 May 2009 16:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Sun, 05 April 2009 17:22

Thank you!

Mirek, could you please tell what is your typical solution to avoid static controls? How do you then manage controls shared between a number of objects of the same class.




Lazy intitalization:

EditString& GlobalEditor()
{
static EditString x;
return x;
}

(Sorry for the very late reply Wink

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using DMC
Next Topic: Cross Compile HowTo?
Goto Forum:
  


Current Time: Fri May 03 17:48:50 CEST 2024

Total time taken to generate the page: 0.02551 seconds