Click here to Skip to main content
15,879,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOpening multiple dialogs Pin
FISH78624-Jun-09 1:51
FISH78624-Jun-09 1:51 
AnswerRe: Opening multiple dialogs Pin
Cedric Moonen24-Jun-09 2:00
Cedric Moonen24-Jun-09 2:00 
GeneralRe: Opening multiple dialogs Pin
FISH78624-Jun-09 2:10
FISH78624-Jun-09 2:10 
AnswerRe: Opening multiple dialogs Pin
_AnsHUMAN_ 24-Jun-09 2:57
_AnsHUMAN_ 24-Jun-09 2:57 
Questionrandom numbers - the old bugger ... Pin
Souldrift24-Jun-09 1:02
Souldrift24-Jun-09 1:02 
AnswerRe: random numbers - the old bugger ... Pin
Michael Schubert24-Jun-09 1:31
Michael Schubert24-Jun-09 1:31 
GeneralRe: random numbers - the old bugger ... Pin
Souldrift24-Jun-09 2:29
Souldrift24-Jun-09 2:29 
AnswerRe: random numbers - the old bugger ... [modified] Pin
CPallini24-Jun-09 1:40
mveCPallini24-Jun-09 1:40 
You should move the srand call:

ToolBox::ToolBox(void)
{
	m_pLogger = Logger::GetInstance();
	srand ( time(NULL) );
}


and


ToolBox* ToolBox::GetInstance()
{
	if( m_pToolbox == NULL )
	{
		m_pToolbox = new ToolBox();
               srand ( time(NULL) );
	}
	return m_pToolbox;
}


[added]
Nevermind I made a blunder.
[/added]
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Wednesday, June 24, 2009 8:49 AM

GeneralRe: random numbers - the old bugger ... Pin
Souldrift24-Jun-09 2:29
Souldrift24-Jun-09 2:29 
QuestionRe: random numbers - the old bugger ... Pin
CPallini24-Jun-09 2:49
mveCPallini24-Jun-09 2:49 
AnswerRe: random numbers - the old bugger ... Pin
Souldrift24-Jun-09 3:06
Souldrift24-Jun-09 3:06 
AnswerRe: random numbers - the old bugger ... Pin
Stuart Dootson24-Jun-09 3:00
professionalStuart Dootson24-Jun-09 3:00 
GeneralRe: random numbers - the old bugger ... Pin
Souldrift24-Jun-09 3:12
Souldrift24-Jun-09 3:12 
GeneralRe: random numbers - the old bugger ... Pin
Stuart Dootson24-Jun-09 3:23
professionalStuart Dootson24-Jun-09 3:23 
GeneralRe: random numbers - the old bugger ... Pin
Souldrift24-Jun-09 3:29
Souldrift24-Jun-09 3:29 
QuestionNeed a help regarding crystal report Pin
tasumisra23-Jun-09 23:42
tasumisra23-Jun-09 23:42 
AnswerRe: Need a help regarding crystal report Pin
Rajesh R Subramanian24-Jun-09 1:18
professionalRajesh R Subramanian24-Jun-09 1:18 
GeneralRe: Need a help regarding crystal report Pin
tasumisra24-Jun-09 2:30
tasumisra24-Jun-09 2:30 
Questioncalling java dll from MFC Pin
sunnyram23-Jun-09 22:24
sunnyram23-Jun-09 22:24 
AnswerRe: calling java dll from MFC Pin
Stuart Dootson23-Jun-09 23:07
professionalStuart Dootson23-Jun-09 23:07 
AnswerRe: calling java dll from MFC Pin
CPallini23-Jun-09 23:11
mveCPallini23-Jun-09 23:11 
AnswerRe: calling java dll from MFC Pin
KarstenK24-Jun-09 2:37
mveKarstenK24-Jun-09 2:37 
GeneralRe: calling java dll from MFC Pin
sunnyram27-Jun-09 4:24
sunnyram27-Jun-09 4:24 
QuestionWindows update install wua api for client server Pin
ashish8patil23-Jun-09 21:57
ashish8patil23-Jun-09 21:57 
QuestionWindows message, Pin
birajendu23-Jun-09 20:52
birajendu23-Jun-09 20:52 

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.