Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unhandled exception. Pin
Christian Graus16-Jul-01 13:05
protectorChristian Graus16-Jul-01 13:05 
GeneralMy program is too slow......help!!! Pin
16-Jul-01 6:17
suss16-Jul-01 6:17 
GeneralRe: My program is too slow......help!!! Pin
John Uhlenbrock16-Jul-01 6:55
John Uhlenbrock16-Jul-01 6:55 
GeneralRe: My program is too slow......help!!! Pin
16-Jul-01 7:04
suss16-Jul-01 7:04 
GeneralHOW TO DO IT????????? Pin
16-Jul-01 7:15
suss16-Jul-01 7:15 
GeneralRe: My program is too slow......help!!! Pin
Paolo Messina16-Jul-01 12:25
professionalPaolo Messina16-Jul-01 12:25 
GeneralRe: My program is too slow......help!!! Pin
Todd Smith16-Jul-01 12:50
Todd Smith16-Jul-01 12:50 
GeneralRe: My program is too slow......help!!! Pin
Christian Graus16-Jul-01 13:08
protectorChristian Graus16-Jul-01 13:08 
You should do a couple of things.

1. Post some code so people can comment intelligently on what you are doing.
2. Put your array into a binary tree or sorted list, so that it remains sorted at all times.
3. If there are 'many' for loops, you're probably using bubble sort - if you use an STL container it is trivial to use a more efficient sort, not that this should matter for 16 elements ( although you don't say what they are. If they are large items and you sort by making deep copies, this could be the problem )
4. The most likely problem could well be your drawing code, but I cannot comment if I have not seen it.



Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

GeneralRe: My program is too slow......help!!! Pin
16-Jul-01 13:50
suss16-Jul-01 13:50 
QuestionStatus LPTPort : with CreateFile ? Pin
youssef16-Jul-01 5:31
youssef16-Jul-01 5:31 
QuestionStatus for LPT with CreateFile ? Pin
youssef16-Jul-01 4:56
youssef16-Jul-01 4:56 
Generaldisplay dialog Pin
16-Jul-01 4:46
suss16-Jul-01 4:46 
GeneralRe: display dialog Pin
Paolo Messina16-Jul-01 12:35
professionalPaolo Messina16-Jul-01 12:35 
GeneralDependency File (.dep) Woes Pin
Derek Price16-Jul-01 4:43
Derek Price16-Jul-01 4:43 
GeneralDependency File (.dep) Woes Pin
Derek Price16-Jul-01 4:39
Derek Price16-Jul-01 4:39 
Generalbitblt + Polygon Pin
Leon16-Jul-01 4:26
Leon16-Jul-01 4:26 
GeneralRe: bitblt + Polygon Pin
Tim Deveaux16-Jul-01 8:46
Tim Deveaux16-Jul-01 8:46 
GeneralRe: bitblt + Polygon Pin
Leon16-Jul-01 21:13
Leon16-Jul-01 21:13 
GeneralRe: bitblt + Polygon Pin
Leon17-Jul-01 21:47
Leon17-Jul-01 21:47 
GeneralRe: bitblt + Polygon Pin
Tim Deveaux18-Jul-01 13:17
Tim Deveaux18-Jul-01 13:17 
GeneralCSocket Assert problem Pin
16-Jul-01 4:23
suss16-Jul-01 4:23 
Questionhow to adjust the line length of the debug window in vc6? Pin
Patrick Hoffmann16-Jul-01 3:28
Patrick Hoffmann16-Jul-01 3:28 
QuestionUINT == long ??? Pin
Hadi Rezaee16-Jul-01 3:08
Hadi Rezaee16-Jul-01 3:08 
AnswerRe: UINT == long ??? Pin
#realJSOP16-Jul-01 3:19
professional#realJSOP16-Jul-01 3:19 
GeneralRe: UINT == long ??? Pin
mr200316-Jul-01 4:29
mr200316-Jul-01 4:29 

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.