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

C / C++ / MFC

 
AnswerRe: vector update problem Pin
toxcct14-Sep-08 21:53
toxcct14-Sep-08 21:53 
AnswerRe: vector update problem Pin
_AnsHUMAN_ 14-Sep-08 21:54
_AnsHUMAN_ 14-Sep-08 21:54 
Questionset "unicode compression" property of Ms access programaticaly using vc++ 6 Pin
anilaabc14-Sep-08 21:02
anilaabc14-Sep-08 21:02 
AnswerRe: set "unicode compression" property of Ms access programaticaly using vc++ 6 Pin
avo210-Feb-10 4:00
avo210-Feb-10 4:00 
QuestionI need a control to pick year from user... Pin
johnthecoder14-Sep-08 20:45
johnthecoder14-Sep-08 20:45 
AnswerRe: I need a control to pick year from user... Pin
SandipG 14-Sep-08 20:53
SandipG 14-Sep-08 20:53 
AnswerRe: I need a control to pick year from user... Pin
Rane14-Sep-08 22:08
Rane14-Sep-08 22:08 
QuestionWhich interprocess communication mechanism should I use? Pin
TheGimp14-Sep-08 18:49
TheGimp14-Sep-08 18:49 
Hi Guys,

I have a number say 4-12 process that will operate as a set. When some new information arrives in one it occationally needs to do something in tandem with another process as quickly as possible. So, I have a thread in each process just waiting for an event to be flagged. When it is, it can check the database for the actual work.

What I have right now is a 50ms loop. This create a lot of CPU overhead from the database to be hit every 50 ms, so I'm looking for a way for two process to communicate.

Initially I thought of using a Mutex so it'll sit there waiting to aquire it, and when released the thread will immediatly check the database, but ownership becomes a problem. It's almost as if I need the opposite of a Mutex. Something that is always locked until it's unlocked.

Does anyone have thoughts on how I might get my processes to sleep until something is flagged? Thoughts?
AnswerRe: Which interprocess communication mechanism should I use? Pin
SandipG 14-Sep-08 20:56
SandipG 14-Sep-08 20:56 
QuestionSplit a string Pin
manju#12314-Sep-08 18:42
manju#12314-Sep-08 18:42 
AnswerRe: Split a string Pin
Joseph Marzbani14-Sep-08 19:06
Joseph Marzbani14-Sep-08 19:06 
AnswerRe: Split a string Pin
Rajesh R Subramanian14-Sep-08 19:08
professionalRajesh R Subramanian14-Sep-08 19:08 
GeneralRe: Split a string Pin
manju#12314-Sep-08 19:33
manju#12314-Sep-08 19:33 
QuestionCovert key strokes into right unicode character in a system-wide keyboard hook ... Pin
Joseph Marzbani14-Sep-08 18:33
Joseph Marzbani14-Sep-08 18:33 
QuestionConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
V K 214-Sep-08 18:23
V K 214-Sep-08 18:23 
AnswerRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
Rane14-Sep-08 22:10
Rane14-Sep-08 22:10 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
V K 214-Sep-08 22:22
V K 214-Sep-08 22:22 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
SandipG 14-Sep-08 22:50
SandipG 14-Sep-08 22:50 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
Rane14-Sep-08 23:06
Rane14-Sep-08 23:06 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
V K 214-Sep-08 23:21
V K 214-Sep-08 23:21 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
SandipG 15-Sep-08 0:00
SandipG 15-Sep-08 0:00 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
V K 215-Sep-08 0:05
V K 215-Sep-08 0:05 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
SandipG 15-Sep-08 0:16
SandipG 15-Sep-08 0:16 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
V K 215-Sep-08 0:33
V K 215-Sep-08 0:33 
GeneralRe: ConvertStringSecurityDescriptortoSecurityDescriptor( ) fails in VC++6.0 editor Pin
SandipG 15-Sep-08 0:49
SandipG 15-Sep-08 0:49 

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.