BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GDI+ Singleton object

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Sabetay Toros
Guest





PostPosted: Mon Feb 12, 2007 9:10 am    Post subject: GDI+ Singleton object Reply with quote



Hi,

It seems to me GDI+ initilization must be implemented only once for a
program as a singleton object. Can anybody confirm this.

Thanks

Sabetay
Back to top
Michel Leunen
Guest





PostPosted: Tue Feb 13, 2007 2:20 am    Post subject: Re: GDI+ Singleton object Reply with quote



Sabetay Toros wrote:

Quote:
It seems to me GDI+ initilization must be implemented only once for a
program as a singleton object.

No, GdiplusStartup() and GdiplusShutdown() may be called several times
in a same program. The only condition is that all GDI+ resources *must*
be freed before calling GdiplusShutdown() and before re-calling
GdiplusStartup().

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.