Click here to Skip to main content
16,011,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA single dialog box to show all the data from the device using serial port RS-232 Pin
Veeresh Hiremath9-Sep-06 5:21
Veeresh Hiremath9-Sep-06 5:21 
QuestionCan't Open File Pin
Max++9-Sep-06 3:49
Max++9-Sep-06 3:49 
AnswerRe: Can't Open File Pin
Chris Losinger9-Sep-06 4:04
professionalChris Losinger9-Sep-06 4:04 
AnswerRe: Can't Open File Pin
Hamid_RT9-Sep-06 4:50
Hamid_RT9-Sep-06 4:50 
Questionhow to retrieve color of sliders ticks Pin
CWiC9-Sep-06 2:18
CWiC9-Sep-06 2:18 
GeneralRe: how to retrieve color of sliders ticks Pin
prasad_som9-Sep-06 21:07
prasad_som9-Sep-06 21:07 
GeneralRe: how to retrieve color of sliders ticks Pin
CWiC11-Sep-06 6:55
CWiC11-Sep-06 6:55 
Questionany comments about a cache design? Pin
George_George9-Sep-06 2:18
George_George9-Sep-06 2:18 
Hello everyone,


I am going to design a Cache in C/C++ (memory cache). I have two different approaches to design/implement it, any comments will be appreciated.

Design 1, using a map (hashtable) to store key --> object pointer relationship (simple and straight forward);

Design 2, store real object or object pointer in a stack/linked list/queue/array as an internal storage data structure, then using a map (hashtable) as an external interface to mapping key --> index in the stack/linked list/queue/array; (in this design, when accessing an object, we need two times mapping, first mapping key to index in the stack/linked list/queue/array, then using the index to access the real object)

I am wondering any advantages or disadvantages of the two designs. Any better design approach suggestion will be appreciated.


thanks in advance,
George
Questioninheritance Pin
jon-809-Sep-06 0:45
professionaljon-809-Sep-06 0:45 
AnswerRe: inheritance [modified] Pin
ewighell9-Sep-06 0:59
ewighell9-Sep-06 0:59 
GeneralRe: inheritance Pin
toxcct9-Sep-06 2:19
toxcct9-Sep-06 2:19 
QuestionDesperately need your help. A weird problem about CString Pin
ewighell9-Sep-06 0:42
ewighell9-Sep-06 0:42 
AnswerRe: Desperately need your help. A weird problem about CString Pin
Hamid_RT9-Sep-06 1:50
Hamid_RT9-Sep-06 1:50 
GeneralRe: Desperately need your help. A weird problem about CString Pin
ewighell9-Sep-06 14:45
ewighell9-Sep-06 14:45 
AnswerRe: Desperately need your help. A weird problem about CString. Pin
Hamid_RT9-Sep-06 0:47
Hamid_RT9-Sep-06 0:47 
QuestionPls help to store values in a safearray nd retrive it back again... Pin
toogud9-Sep-06 0:30
toogud9-Sep-06 0:30 
AnswerRe: Pls help to store values in a safearray nd retrive it back again... Pin
Hamid_RT9-Sep-06 1:14
Hamid_RT9-Sep-06 1:14 
GeneralRe: Pls help to store values in a safearray nd retrive it back again... Pin
toogud9-Sep-06 1:16
toogud9-Sep-06 1:16 
GeneralRe: Pls help to store values in a safearray nd retrive it back again... Pin
Hamid_RT9-Sep-06 1:47
Hamid_RT9-Sep-06 1:47 
QuestionFatel error "libmysql.lib" Pin
Y_Kaushik9-Sep-06 0:07
Y_Kaushik9-Sep-06 0:07 
AnswerRe: Fatel error "libmysql.lib" Pin
Hamid_RT9-Sep-06 2:01
Hamid_RT9-Sep-06 2:01 
AnswerRe: Fatel error "libmysql.lib" Pin
CWiC9-Sep-06 2:45
CWiC9-Sep-06 2:45 
QuestionVietnamese in VC++ Pin
halloweenbk8-Sep-06 23:59
halloweenbk8-Sep-06 23:59 
AnswerRe: Vietnamese in VC++ Pin
Hamid_RT9-Sep-06 1:03
Hamid_RT9-Sep-06 1:03 
GeneralRe: Vietnamese in VC++ Pin
halloweenbk11-Sep-06 1:10
halloweenbk11-Sep-06 1:10 

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.