Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please help us , it`s very hard Pin
Luc Pattyn6-May-09 5:17
sitebuilderLuc Pattyn6-May-09 5:17 
GeneralRe: please help us , it`s very hard Pin
trongduy7-May-09 4:19
trongduy7-May-09 4:19 
AnswerRe: please help us , it`s very hard Pin
David Crow6-May-09 8:52
David Crow6-May-09 8:52 
AnswerRe: please help us , it`s very hard Pin
enhzflep6-May-09 15:12
enhzflep6-May-09 15:12 
Questionchanging the color of my controls to white using OnCtlColor Pin
brucewayn6-May-09 4:52
brucewayn6-May-09 4:52 
AnswerRe: changing the color of my controls to white using OnCtlColor Pin
Code-o-mat6-May-09 8:30
Code-o-mat6-May-09 8:30 
QuestionSynchronization issue Pin
Ahmed Charfeddine6-May-09 4:50
Ahmed Charfeddine6-May-09 4:50 
AnswerRe: Synchronization issue Pin
Stuart Dootson6-May-09 5:18
professionalStuart Dootson6-May-09 5:18 
Ahmed Charfeddine wrote:
I know there is lot of details but my hope is to give the big picture so if you know of a predefined pattern that deals with this or an existing implementation solution then I can further my choices.


You want an object pool[^].

Boost has a pool allocator library - but that is a memory allocator - it doesn't reuse objects directly, just memory.

There are some[^] CodeProject[^] articles - I suspect they don't meet your exact requirements, but they could well be modified to suit?

Ahmed Charfeddine wrote:
My solution was to create critical section per-object I also ended up with a solution such that the external code never deals with a pointer to the physical object, rather a handle, an access integer.


One critical-section, for the object manager, should be sufficient, I think.

Your point about never having a raw pointer to an object is wise - but I'd be tempted to use some form of smart pointer that allows you to access the object directly using the handle. Boost.Flyweight[^] may be of use?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionHelp about Message loop please Pin
reply2am6-May-09 4:47
reply2am6-May-09 4:47 
QuestionProblem with LockWorkStation() function Pin
naro246-May-09 4:23
naro246-May-09 4:23 
AnswerRe: Problem with LockWorkStation() function ( not so much ) Pin
led mike6-May-09 4:29
led mike6-May-09 4:29 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
Rajesh R Subramanian6-May-09 4:45
professionalRajesh R Subramanian6-May-09 4:45 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
naro246-May-09 4:55
naro246-May-09 4:55 
GeneralRe: Problem with LockWorkStation() function ( not so much ) Pin
David Crow6-May-09 8:56
David Crow6-May-09 8:56 
GeneralRe: Welcome in the CP's memorable quotes list. Pin
CPallini6-May-09 10:23
mveCPallini6-May-09 10:23 
QuestionCreate Wrapper class Pin
anishkannan6-May-09 3:56
anishkannan6-May-09 3:56 
AnswerRe: Create Wrapper class Pin
Rajesh R Subramanian6-May-09 4:04
professionalRajesh R Subramanian6-May-09 4:04 
Questionwildcard interpretation Pin
William Engberts6-May-09 3:51
William Engberts6-May-09 3:51 
AnswerRe: wildcard interpretation Pin
Rajesh R Subramanian6-May-09 4:03
professionalRajesh R Subramanian6-May-09 4:03 
AnswerRe: wildcard interpretation Pin
Stuart Dootson6-May-09 4:56
professionalStuart Dootson6-May-09 4:56 
QuestionPostMessage with VISTA Pin
john56326-May-09 2:01
john56326-May-09 2:01 
AnswerRe: PostMessage with VISTA Pin
Stuart Dootson6-May-09 2:19
professionalStuart Dootson6-May-09 2:19 
GeneralRe: PostMessage with VISTA Pin
led mike6-May-09 4:27
led mike6-May-09 4:27 
GeneralRe: PostMessage with VISTA Pin
Stuart Dootson6-May-09 4:53
professionalStuart Dootson6-May-09 4:53 
GeneralRe: PostMessage with VISTA Pin
Rajesh R Subramanian6-May-09 5:00
professionalRajesh R Subramanian6-May-09 5:00 

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.