Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 4:49
Amit Agarrwal5-Jul-06 4:49 
QuestionSingleton class question Pin
Tnarol5-Jul-06 1:33
Tnarol5-Jul-06 1:33 
AnswerRe: Singleton class question Pin
Viorel.5-Jul-06 1:40
Viorel.5-Jul-06 1:40 
AnswerRe: Singleton class question [modified] Pin
Sarath C5-Jul-06 1:44
Sarath C5-Jul-06 1:44 
GeneralRe: Singleton class question Pin
Tnarol5-Jul-06 1:55
Tnarol5-Jul-06 1:55 
GeneralRe: Singleton class question Pin
Sarath C5-Jul-06 2:02
Sarath C5-Jul-06 2:02 
GeneralRe: Singleton class question Pin
Sarath C5-Jul-06 2:07
Sarath C5-Jul-06 2:07 
AnswerRe: Singleton class question Pin
Cedric Moonen5-Jul-06 2:42
Cedric Moonen5-Jul-06 2:42 
Another option is to have the function that returns the single instance written this way:

CMySingleton* CMySingleton::GetInstance()
{
    static CMySingleton Instance;
    return &Instance;
}


This way, everything will be managed automatically and you don't need to take care of releasing the memory. The disandvatage of this version is that you don't have any control over the creation time of the singleton (which is not a problem when you use one but can be problematic when you have a singleton that has a singleton as member for example).


Cédric Moonen
Software developer

Charting control
Questionhow we can use owner draw for list control and tab control Pin
vasusree5-Jul-06 1:25
vasusree5-Jul-06 1:25 
AnswerRe: how we can use owner draw for list control and tab control Pin
KarstenK5-Jul-06 1:42
mveKarstenK5-Jul-06 1:42 
AnswerRe: how we can use owner draw for list control and tab control Pin
Hamid_RT5-Jul-06 1:56
Hamid_RT5-Jul-06 1:56 
Questionfont button and picture Pin
ashish dogra5-Jul-06 1:20
ashish dogra5-Jul-06 1:20 
AnswerRe: font button and picture [modified] Pin
_AnsHUMAN_ 5-Jul-06 1:38
_AnsHUMAN_ 5-Jul-06 1:38 
GeneralRe: font button and picture Pin
ashish dogra5-Jul-06 2:03
ashish dogra5-Jul-06 2:03 
AnswerRe: font button and picture Pin
Hamid_RT5-Jul-06 2:03
Hamid_RT5-Jul-06 2:03 
AnswerRe: font button and picture Pin
David Crow5-Jul-06 3:05
David Crow5-Jul-06 3:05 
QuestionBitmap on toolbar button Pin
anjita5-Jul-06 1:17
anjita5-Jul-06 1:17 
AnswerRe: Bitmap on toolbar button Pin
_AnsHUMAN_ 5-Jul-06 1:33
_AnsHUMAN_ 5-Jul-06 1:33 
AnswerRe: Bitmap on toolbar button Pin
cje5-Jul-06 6:06
cje5-Jul-06 6:06 
QuestionWriting a ISAPI Extension for Win CE with SQL CE 2.0 access Pin
SkySurferOne5-Jul-06 1:15
SkySurferOne5-Jul-06 1:15 
QuestionQuick / Easy 2D Display Pin
ldsdbomber5-Jul-06 1:02
ldsdbomber5-Jul-06 1:02 
AnswerRe: Quick / Easy 2D Display Pin
_AnsHUMAN_ 5-Jul-06 1:11
_AnsHUMAN_ 5-Jul-06 1:11 
GeneralRe: Quick / Easy 2D Display Pin
ldsdbomber5-Jul-06 3:07
ldsdbomber5-Jul-06 3:07 
GeneralRe: Quick / Easy 2D Display Pin
ldsdbomber5-Jul-06 3:10
ldsdbomber5-Jul-06 3:10 
QuestionFiltering a List View with an other List Box Pin
frbry5-Jul-06 0:57
frbry5-Jul-06 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.