Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is this is a valid Pin
Mike Nordell28-Nov-01 17:25
Mike Nordell28-Nov-01 17:25 
GeneralCustom Draw Pin
RobJones28-Nov-01 10:39
RobJones28-Nov-01 10:39 
GeneralRe: Custom Draw Pin
Wolfram Steinke28-Nov-01 10:53
Wolfram Steinke28-Nov-01 10:53 
GeneralRe: Custom Draw Pin
RobJones28-Nov-01 10:57
RobJones28-Nov-01 10:57 
GeneralRe: Custom Draw Pin
Michael Dunn28-Nov-01 13:58
sitebuilderMichael Dunn28-Nov-01 13:58 
QuestionAvoid flickering in list control? Pin
User 665828-Nov-01 9:16
User 665828-Nov-01 9:16 
AnswerRe: Avoid flickering in list control? Pin
Michael Dunn28-Nov-01 9:56
sitebuilderMichael Dunn28-Nov-01 9:56 
QuestionAre there faster accessing arrays than vectors? Pin
Chambers28-Nov-01 9:00
Chambers28-Nov-01 9:00 
Hi all, I`ve written some convolution code and managed to get the filters and stuff going fine, the only trouble is the speed! If I so much as use a vector once in the final nested for loop (where it works out the position of the filter with regards to the image) it slows the process down considerably (and I mean considerably - instead of being instant, theres at least a couple of seconds delay). In my code I *need* to access this memory bank at least three times in the final nested for loop (once for Red, Green Blue). Delphi has dynamic arrays which do the job perfectly, I was just wondering what the best way was in VC++? I`ve thought of using pointers, performing a small sum and accessing the pointer at that position, however I`d prefer to use the [] operator as it makes my code that little bit easier to read. Any ideas on better methods for quick access to retrieving data in memory, or as to why my bloody vectors are so slow (I'm using multidimensional vectors, 2-d ones, the location of which is stored in a vector, so I`m actually using a vector of a vector of a vector, but I didn`t think this should slow it down to the amount it is doing? Also my images are quite small, if used a large image I could probably make myself a cup of tea and drink it before it finished!!!) would be much appreciated. Thanks anyway guys,

Alan.

"When I left you I was but the learner, now I am the Master" - Darth VaderMad | :mad:
AnswerRe: Are there faster accessing arrays than vectors? Pin
Christian Graus28-Nov-01 12:32
protectorChristian Graus28-Nov-01 12:32 
AnswerRe: Are there faster accessing arrays than vectors? Pin
Todd Smith28-Nov-01 14:44
Todd Smith28-Nov-01 14:44 
AnswerRe: Are there faster accessing arrays than vectors? Pin
Chambers29-Nov-01 8:50
Chambers29-Nov-01 8:50 
GeneralRe: Are there faster accessing arrays than vectors? Pin
Chris Losinger29-Nov-01 11:08
professionalChris Losinger29-Nov-01 11:08 
GeneralRe: Are there faster accessing arrays than vectors? Pin
Todd Smith29-Nov-01 12:11
Todd Smith29-Nov-01 12:11 
GeneralRe: Are there faster accessing arrays than vectors? Pin
Todd Smith29-Nov-01 12:24
Todd Smith29-Nov-01 12:24 
GeneralRe: There are faster accessing arrays than vectors! Pin
Chambers30-Nov-01 2:39
Chambers30-Nov-01 2:39 
GeneralVery strange behavior in ActiveX control, pleas help Pin
Bill Wilson28-Nov-01 8:51
Bill Wilson28-Nov-01 8:51 
QuestionHow to map return-key(enter) from combobox? Pin
Pony28-Nov-01 7:52
Pony28-Nov-01 7:52 
GeneralSoftware Documentation Pin
28-Nov-01 7:48
suss28-Nov-01 7:48 
GeneralRe: Software Documentation Pin
Mike Nordell28-Nov-01 17:28
Mike Nordell28-Nov-01 17:28 
GeneralTo Christian Graus & Nish Pin
Karavaev Denis28-Nov-01 7:21
Karavaev Denis28-Nov-01 7:21 
GeneralRe: To Christian Graus & Nish Pin
Chris Losinger28-Nov-01 7:46
professionalChris Losinger28-Nov-01 7:46 
GeneralRe: Who are these guys? Pin
Masaaki Onishi28-Nov-01 9:47
Masaaki Onishi28-Nov-01 9:47 
GeneralRe: Who are these guys? Pin
Karavaev Denis28-Nov-01 17:20
Karavaev Denis28-Nov-01 17:20 
GeneralRe: To Christian Graus & Nish Pin
Karavaev Denis28-Nov-01 17:23
Karavaev Denis28-Nov-01 17:23 
GeneralRe: OK, This is a tricky one! Pin
Masaaki Onishi28-Nov-01 17:34
Masaaki Onishi28-Nov-01 17:34 

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.