Click here to Skip to main content
16,016,712 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Alt + F4 Pin
alex.barylski7-Aug-02 11:51
alex.barylski7-Aug-02 11:51 
GeneralRe: Alt + F4 Pin
Chris Losinger7-Aug-02 13:21
professionalChris Losinger7-Aug-02 13:21 
GeneralRe: Alt + F4 Pin
alex.barylski7-Aug-02 14:39
alex.barylski7-Aug-02 14:39 
GeneralSTL Question Pin
JohnnyG7-Aug-02 9:23
JohnnyG7-Aug-02 9:23 
GeneralRe: STL Question Pin
Christian Graus7-Aug-02 10:02
protectorChristian Graus7-Aug-02 10:02 
GeneralRe: STL Question Pin
JohnnyG7-Aug-02 10:31
JohnnyG7-Aug-02 10:31 
GeneralRe: STL Question Pin
dabs7-Aug-02 10:10
dabs7-Aug-02 10:10 
GeneralRe: STL Question Pin
JohnnyG7-Aug-02 10:24
JohnnyG7-Aug-02 10:24 
Well, it would work but not really what I'm looking for Wink | ;) I considered doing this but I have to call the memset to clear the array every 4.6 secs which is one for loop (internally in machine code anyways). Then, I have to load the array, another for loop. Plus, if I only have 100 codes to enter in that time interval, I'm wasting time looping and putting empty slots. Probably, the max codes I'll have in a time interval is 500.

Actually, my data is values 0-3777 octal which is exactly 2048 bytes (2K). So, memory isn't a problem but speed checking whether one already exists in the array is. I think I will look into Christian's suggestion above, since I think a hash may be the fastest though I still will have to add elements and delete them every 4.6 seconds. However, the lookup will be tremendously faster.
GeneralRe: STL Question Pin
Tomasz Sowinski7-Aug-02 10:35
Tomasz Sowinski7-Aug-02 10:35 
GeneralRe: STL Question Pin
Christian Graus7-Aug-02 11:55
protectorChristian Graus7-Aug-02 11:55 
GeneralRe: STL Question Pin
Tomasz Sowinski7-Aug-02 11:57
Tomasz Sowinski7-Aug-02 11:57 
GeneralRe: STL Question Pin
Chris Losinger7-Aug-02 13:17
professionalChris Losinger7-Aug-02 13:17 
GeneralRe: STL Question Pin
Todd Smith8-Aug-02 18:45
Todd Smith8-Aug-02 18:45 
GeneralRe: STL Question Pin
Tomasz Sowinski8-Aug-02 23:21
Tomasz Sowinski8-Aug-02 23:21 
GeneralRe: STL Question Pin
Todd Smith8-Aug-02 18:47
Todd Smith8-Aug-02 18:47 
GeneralRe: STL Question Pin
Christian Graus8-Aug-02 19:09
protectorChristian Graus8-Aug-02 19:09 
GeneralRe: STL Question Pin
Todd Smith9-Aug-02 5:53
Todd Smith9-Aug-02 5:53 
GeneralVisual Studio.NET: small rant Pin
Le centriste7-Aug-02 9:16
Le centriste7-Aug-02 9:16 
GeneralRe: Visual Studio.NET: small rant Pin
Rob Caldecott7-Aug-02 9:17
Rob Caldecott7-Aug-02 9:17 
GeneralRe: Visual Studio.NET: small rant Pin
Michael P Butler7-Aug-02 22:14
Michael P Butler7-Aug-02 22:14 
GeneralNeed a edit class with hyperlinks support! Commercial or demo. Pin
Pavel Sokolov7-Aug-02 8:40
Pavel Sokolov7-Aug-02 8:40 
GeneralRe: Need a edit class with hyperlinks support! Commercial or free. Pin
Pavel Sokolov7-Aug-02 8:45
Pavel Sokolov7-Aug-02 8:45 
GeneralRe: Need a edit class with hyperlinks support! Commercial or free. Pin
Rob Caldecott7-Aug-02 9:13
Rob Caldecott7-Aug-02 9:13 
GeneralmmioOpen Pin
Anonymous7-Aug-02 8:17
Anonymous7-Aug-02 8:17 
GeneralRe: mmioOpen Pin
Anonymous7-Aug-02 9:40
Anonymous7-Aug-02 9:40 

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.