Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSetting the print title column Pin
mcgahanfl18-Jun-04 5:43
mcgahanfl18-Jun-04 5:43 
GeneralRe: Setting the print title column Pin
Johan Rosengren18-Jun-04 5:53
Johan Rosengren18-Jun-04 5:53 
Generalstd::string and reserve question ... Pin
Maximilien18-Jun-04 5:24
Maximilien18-Jun-04 5:24 
GeneralRe: std::string and reserve question ... Pin
palbano18-Jun-04 6:00
palbano18-Jun-04 6:00 
GeneralRe: std::string and reserve question ... Pin
Maximilien18-Jun-04 8:24
Maximilien18-Jun-04 8:24 
GeneralRe: std::string and reserve question ... Pin
James R. Twine18-Jun-04 11:20
James R. Twine18-Jun-04 11:20 
GeneralExperts help with Threads with Notifications Pin
18-Jun-04 4:50
suss18-Jun-04 4:50 
GeneralRe: Experts help with Threads with Notifications Pin
Blake Miller18-Jun-04 5:47
Blake Miller18-Jun-04 5:47 
Your simulator thread can post messages to a window, if your main thread created a window, or threads can post messages to each other with PostThreadMessage.

You can only wait on, I think, 32 events at any given time, so you don't want EVERY possible thing your simulator can do to be a different synchronization event.

It would be better to create a thread-safe queue, and your simulator thread puts 'data events' into the queue and posts a message or sets a synchronization event to indicate that data is available in the queue. The thread consuming the data can wait on the synchronization event and then go read the queue. If it is a window, it would go read the data queue and process data until it had read all items out of the queue, then it would be waiting again.

GeneralRe: Experts help with Threads with Notifications Pin
Member 115017621-Jun-04 1:29
Member 115017621-Jun-04 1:29 
QuestionHow can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:41
Gem18-Jun-04 4:41 
AnswerRe: How can I create GraphicsPath vector and its iterator ? Pin
Gem18-Jun-04 4:45
Gem18-Jun-04 4:45 
GeneralMAPI and outlook Pin
kanetheterrible118-Jun-04 4:35
kanetheterrible118-Jun-04 4:35 
GeneralRe: MAPI and outlook Pin
Michael P Butler18-Jun-04 4:52
Michael P Butler18-Jun-04 4:52 
GeneralRe: MAPI and outlook Pin
kanetheterrible118-Jun-04 6:39
kanetheterrible118-Jun-04 6:39 
GeneralDoModal and window position Pin
Anonymous18-Jun-04 4:22
Anonymous18-Jun-04 4:22 
GeneralRe: DoModal and window position Pin
jmkhael18-Jun-04 4:25
jmkhael18-Jun-04 4:25 
GeneralPlease help - Fast Table Format Pin
swerajan18-Jun-04 3:34
swerajan18-Jun-04 3:34 
GeneralRe: Please help - Fast Table Format Pin
zon_cpp19-Sep-10 20:30
zon_cpp19-Sep-10 20:30 
GeneralCreating variable window...Help! Pin
irshad_bukhari18-Jun-04 3:23
irshad_bukhari18-Jun-04 3:23 
GeneralRe: Creating variable window...Help! Pin
Antony M Kancidrowski18-Jun-04 4:06
Antony M Kancidrowski18-Jun-04 4:06 
GeneralUnknown size array Pin
mufasa218-Jun-04 3:19
mufasa218-Jun-04 3:19 
GeneralRe: Unknown size array Pin
wb18-Jun-04 3:48
wb18-Jun-04 3:48 
GeneralRe: Unknown size array Pin
mufasa218-Jun-04 3:58
mufasa218-Jun-04 3:58 
GeneralRe: Unknown size array Pin
jmkhael18-Jun-04 4:03
jmkhael18-Jun-04 4:03 
GeneralRe: Unknown size array Pin
Member 111482118-Jun-04 8:07
Member 111482118-Jun-04 8:07 

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.