Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: call a function from Multiple project into single solution. Pin
Sarath C5-Jul-06 3:51
Sarath C5-Jul-06 3:51 
GeneralRe: call a function from Multiple project into single solution. Pin
Cedric Moonen5-Jul-06 3:54
Cedric Moonen5-Jul-06 3:54 
GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 4:09
Amit Agarrwal5-Jul-06 4:09 
GeneralRe: call a function from Multiple project into single solution. Pin
Sarath C5-Jul-06 4:38
Sarath C5-Jul-06 4:38 
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 
We should destroy it after use.

Singleton design is same like as all objects except it has an internal static pointer and function to create it.

We should do the cleanup.

I suggest you do the same at the end of the application.
e.g: Before returning from Main, or in ExitIstance of CWinApp etc.

The other way is make the static pointer as an auto pointer.

but I'm not recommending the same.

SaRath.

"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."

My Blog | Understanding State Pattern in C++

-- modified at 7:44 Wednesday 5th July, 2006

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 
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 

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.