AfxBeginThread confusion with CALLBACK
-
I have a misbehaving multithreaded application which works so so using CreateThread and associated code ( set priority etc.) I have changed to AfxBeginThread and cannot compile( always fails with 1 parameter not matching required parameters) it without changing my thread processing function to UINT ThreadProcessFunction(... I need this function to be UINT CALLBACK ThreadProcessFunction(... ! I am monitoring events from COM port. The AfxBeginThread "calls" CreateThread - so why it does not work? Thanks for reading. Vaclav
-
I have a misbehaving multithreaded application which works so so using CreateThread and associated code ( set priority etc.) I have changed to AfxBeginThread and cannot compile( always fails with 1 parameter not matching required parameters) it without changing my thread processing function to UINT ThreadProcessFunction(... I need this function to be UINT CALLBACK ThreadProcessFunction(... ! I am monitoring events from COM port. The AfxBeginThread "calls" CreateThread - so why it does not work? Thanks for reading. Vaclav
Post some code, and you might get a better response...