mfc
2012-04-06 14:47:21 UTC
Hi,
I want to create a MFC application which receives a midi timecode by a
usb-midi-device for synchronization purpose. Under control of this
"timecode clock" I want to transmit some data packets by serial
ports.
In my solution, I`ll spend an UI-thread for transmitting the serial-
port data as well as another UI-thread for receiving the midi timecode
packets. My document-class has a visible window class (not the
mainframe class) to get received Postmessages from these threads. But
I`m not sure if this is the best setup according to the
synchronization, because if the window-system has to send / process a
lot of messages in the message-pump, it takes some time to send
Postmessages to the visible window as well as to send a message to the
serial-port thread. Are there any well-known clues or programming
techniques?
Unfortunately I don`t know how this will be solved to acchieve the
best synchronization which will be possible using a Windows operating
system device.
best regards
Hans
I want to create a MFC application which receives a midi timecode by a
usb-midi-device for synchronization purpose. Under control of this
"timecode clock" I want to transmit some data packets by serial
ports.
In my solution, I`ll spend an UI-thread for transmitting the serial-
port data as well as another UI-thread for receiving the midi timecode
packets. My document-class has a visible window class (not the
mainframe class) to get received Postmessages from these threads. But
I`m not sure if this is the best setup according to the
synchronization, because if the window-system has to send / process a
lot of messages in the message-pump, it takes some time to send
Postmessages to the visible window as well as to send a message to the
serial-port thread. Are there any well-known clues or programming
techniques?
Unfortunately I don`t know how this will be solved to acchieve the
best synchronization which will be possible using a Windows operating
system device.
best regards
Hans