Click here to Skip to main content
16,006,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp File Pin
act_x6-Dec-02 8:55
act_x6-Dec-02 8:55 
GeneralRe: Help File Pin
lucy6-Dec-02 9:33
lucy6-Dec-02 9:33 
GeneralRe: Help File Pin
act_x6-Dec-02 9:43
act_x6-Dec-02 9:43 
GeneralRe: Help File Pin
Paul M Watt6-Dec-02 10:27
mentorPaul M Watt6-Dec-02 10:27 
GeneralThank you all Pin
act_x6-Dec-02 10:39
act_x6-Dec-02 10:39 
GeneralRe: Help File Pin
Gaul7-Dec-02 19:14
Gaul7-Dec-02 19:14 
GeneralRe: Help File Pin
lucy9-Dec-02 2:21
lucy9-Dec-02 2:21 
GeneralHWND to a UIThread Pin
David_Leikis6-Dec-02 8:35
David_Leikis6-Dec-02 8:35 
I am trying to create a thread to monitor a USB-connected ADC module. Its driver uses a callback function for the configuration of the module. It requires a CWnd handle given to it such that when it has a buffer filled, it sends a OLDA_WM_BUFFER_DONE message to the thread. I created a UIThread so that it would have a message handler and I could create my OnBufferDone function. (Which is working and tested in a single thread situation.) It needs to be in a separate thread so that I can empty the buffer quickly
and move the sample data into my internal buffers and return it back to the ADC module driver before the next buffer_full message comes in.


Does anyone know how to create or get a HWND for a UIThread so that this driver can know where to send messages to my thread?

Thanks in advance,
Dave
Cry | :((
GeneralRe: HWND to a UIThread Pin
KaЯl7-Dec-02 1:59
KaЯl7-Dec-02 1:59 
GeneralProblem with auto_ptr !!! Pin
Luc Bergeron6-Dec-02 8:30
Luc Bergeron6-Dec-02 8:30 
GeneralRe: Problem with auto_ptr !!! Pin
Alvaro Mendez6-Dec-02 9:50
Alvaro Mendez6-Dec-02 9:50 
GeneralRe: Problem with auto_ptr !!! Pin
Luc Bergeron6-Dec-02 10:01
Luc Bergeron6-Dec-02 10:01 
QuestionDynamic CEdit can't call DoDataExchange()? Pin
dazinith6-Dec-02 8:20
dazinith6-Dec-02 8:20 
AnswerRe: Dynamic CEdit can't call DoDataExchange()? Pin
Sara Burns6-Dec-02 11:00
Sara Burns6-Dec-02 11:00 
AnswerRe: Dynamic CEdit can't call DoDataExchange()? Pin
worm7-Dec-02 14:43
worm7-Dec-02 14:43 
GeneralChange window style Pin
Member 997186-Dec-02 8:19
Member 997186-Dec-02 8:19 
GeneralRe: Change window style Pin
Maximilien6-Dec-02 8:30
Maximilien6-Dec-02 8:30 
GeneralRe: Change window style Pin
Member 997186-Dec-02 9:29
Member 997186-Dec-02 9:29 
GeneralHovering text... Pin
Maximilien6-Dec-02 8:01
Maximilien6-Dec-02 8:01 
GeneralDetected memory leaks! :( Pin
lucy6-Dec-02 7:04
lucy6-Dec-02 7:04 
GeneralRe: Detected memory leaks! :( Pin
Roger Allen6-Dec-02 7:23
Roger Allen6-Dec-02 7:23 
GeneralRe: Detected memory leaks! :( Pin
lucy6-Dec-02 7:32
lucy6-Dec-02 7:32 
GeneralRe: Detected memory leaks! :( Pin
lucy6-Dec-02 7:37
lucy6-Dec-02 7:37 
GeneralRe: Magic of StdAfx.h?? Pin
lucy6-Dec-02 8:00
lucy6-Dec-02 8:00 
GeneralMFC Controls and Thread Safety :: MFC Pin
valikac6-Dec-02 6:38
valikac6-Dec-02 6:38 

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.