Click here to Skip to main content
15,899,313 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Basic doubt with Class template Pin
Richard MacCutchan8-Jul-11 0:31
mveRichard MacCutchan8-Jul-11 0:31 
AnswerRe: Basic doubt with Class template Pin
Orjan Westin5-Aug-11 8:49
professionalOrjan Westin5-Aug-11 8:49 
AnswerRe: Basic doubt with Class template Pin
Paul M Watt10-Jul-11 16:09
mentorPaul M Watt10-Jul-11 16:09 
GeneralRe: Basic doubt with Class template Pin
hrishi32110-Jul-11 16:59
hrishi32110-Jul-11 16:59 
AnswerRe: Basic doubt with Class template Pin
Bram van Kampen19-Aug-11 14:54
Bram van Kampen19-Aug-11 14:54 
Questionbackgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 4:44
VeganFanatic26-Jun-11 4:44 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 5:18
mveRichard MacCutchan26-Jun-11 5:18 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:19
VeganFanatic26-Jun-11 5:19 
void showtime(void *dummy) {
	computing = true;
	output.clear();
	// Display the copyright
	output = _TEXT("Fibonacci 3.0.0 for Windows");
	output += ToString("/n/l/n/l");
	// f << name << ": " << time << " seconds" << std::endl << std::endl;
	output += _TEXT("(c) 2010-1 583727 BC Ltd, All Rights Reserved.");
	// f << name << ": " << time << " seconds" << std::endl << std::endl;
	output += _TEXT("/n/l");
	output += _TEXT("Free for peronsal use only");
	output += _TEXT("/n/l/n/l");
	output += _TEXT("Commercial and government use requires a license");
	output += _TEXT("/n/l/n/l");
	output += _TEXT("To acheieve consistant results, run this program in the clean boot mode");
	output += _TEXT("/n/l");
	output += _TEXT("Click on start, in the seach box enter 'msconfig' and choose the startup tab, disable everyting and reboot");
	output += _TEXT("/n/l/n/l");
	output += _TEXT("RAM Performance  ");
	output += ToString(benchmark(fib2));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Scalar Performance  ");
	output += ToString(benchmark(fib3));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("CPU Large Multiplication Performance  ");
	output += ToString(benchmark(fib4));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	v.resize(0); t.resize(0);  // free up some RAM
	output += _TEXT("Recursive Factorial Performance  ");
	output += ToString(benchmark(RunFact));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Bubble Sort Performance  ");
	output += ToString(benchmark(RunBubbleSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Insertion Sort Performance  ");
	output += ToString(benchmark(RunInsertionSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Shell Sort Performance  ");
	output += ToString(benchmark(RunShellSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Quick Sort Performance  ");
	output += ToString(benchmark(RunQuickSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Merge Sort Performance  ");
	output += ToString(benchmark(RunMergeSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Heap Sort Performance  ");
	output += ToString(benchmark(RunHeapSort));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel Bitwise Sieve of Eratosthenes Performance  ");
	output += ToString(benchmark(sieve));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel Goldbach Conjecture Performance Performance  ");
	output += ToString(benchmark(goldbach));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel Collatz Conjecture Performance  ");
	output += ToString(benchmark(RunCollatz));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel vector<float> normalization  ");
	output += ToString(benchmark(vtestfloat));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel vector<double> normalization  ");
	output += ToString(benchmark(vtestdouble));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel vector<std::complex> normalization  ");
	output += ToString(benchmark(vtestcomplex));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel matrix<float> multiplication  ");
	output += ToString(benchmark(mtest1));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel matrix<double> multiplication  ");
	output += ToString(benchmark(mtest2));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l");
	output += _TEXT("Parallel matrix<std::complex> multiplication  ");
	output += ToString(benchmark(mtest3));
	output += _TEXT(" seconds");
	output += _TEXT("/n/l/n/l");
	//
	// Completed so advise the user
	//
	computing = false;
	MessageBox(NULL, L"Completed", L"Fibonacci", MB_OK);
	//_endthread();
}

http://www.contract-developer.tk

GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 5:44
mveRichard MacCutchan26-Jun-11 5:44 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:46
VeganFanatic26-Jun-11 5:46 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 5:57
mveRichard MacCutchan26-Jun-11 5:57 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:58
VeganFanatic26-Jun-11 5:58 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 6:06
mveRichard MacCutchan26-Jun-11 6:06 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 6:08
VeganFanatic26-Jun-11 6:08 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Albert Holguin5-Jul-11 9:52
professionalAlbert Holguin5-Jul-11 9:52 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Paul M Watt10-Jul-11 16:24
mentorPaul M Watt10-Jul-11 16:24 
QuestionMigration from MFC to STL Pin
hrishi32122-Jun-11 20:28
hrishi32122-Jun-11 20:28 
AnswerRe: Migration from MFC to STL Pin
Alain Rist22-Jun-11 22:44
Alain Rist22-Jun-11 22:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:28
hrishi32126-Jun-11 18:28 
GeneralRe: Migration from MFC to STL Pin
Alain Rist26-Jun-11 21:18
Alain Rist26-Jun-11 21:18 
AnswerRe: Migration from MFC to STL Pin
Albert Holguin23-Jun-11 8:44
professionalAlbert Holguin23-Jun-11 8:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:30
hrishi32126-Jun-11 18:30 
AnswerRe: Migration from MFC to STL Pin
Bram van Kampen19-Aug-11 15:00
Bram van Kampen19-Aug-11 15:00 
QuestionQuestion about inserting into dbf file Pin
monsieur_jj21-Jun-11 16:08
monsieur_jj21-Jun-11 16:08 
QuestionToolTip text in WTL Pin
SelvaKr20-Jun-11 21:03
SelvaKr20-Jun-11 21:03 

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.