PDA

View Full Version : Single thread callback?



glennpierce
January 23, 2007, 17:45:27
I have a preexisting application that show still and live video.
The input is FreeImage bitmaps.

I have used code similiar to that posted in the thread
http://www.theimagingsourceforums.com/showthread.php?t=319301

However I want to show live video and I can't call the my functions that effect my UI like LoadImage from frameReady as that is another thread and UI control are not meant to be accessed from different threads.
Is there a way to get the frameReady callback to not operate in a separate thread ?

Thanks

Stefan Geissler
January 23, 2007, 18:00:50
Hi

You may communicate with your main thread through the Windows PostMessage() functions.