Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SendMessage is thread-safe because no interaction between the threads Pin
Randor 4-May-10 5:55
professional Randor 4-May-10 5:55 
GeneralRe: Link to an example (code) Pin
Software_Developer2-May-10 19:41
Software_Developer2-May-10 19:41 
GeneralRe: Link to an example (code) Pin
m_code4-May-10 7:28
m_code4-May-10 7:28 
QuestionWhat does my Logitech keyboard send when I press its special 'E-Mail' key? Pin
glyfyx2-May-10 7:43
glyfyx2-May-10 7:43 
AnswerRe: What does my Logitech keyboard send when I press its special 'E-Mail' key? Pin
Richard Andrew x642-May-10 8:30
professionalRichard Andrew x642-May-10 8:30 
AnswerRe: What does my Logitech keyboard send when I press its special 'E-Mail' key? Pin
Michel Godfroid2-May-10 9:44
Michel Godfroid2-May-10 9:44 
AnswerRe: What does my Logitech keyboard send when I press its special 'E-Mail' key? Pin
glyfyx2-May-10 18:01
glyfyx2-May-10 18:01 
QuestionPointer/address to CFormView Pin
DanYELL1-May-10 19:25
DanYELL1-May-10 19:25 
AnswerRe: Pointer/address to CFormView Pin
PJ Arends1-May-10 20:01
professionalPJ Arends1-May-10 20:01 
GeneralRe: Pointer/address to CFormView Pin
DanYELL2-May-10 5:29
DanYELL2-May-10 5:29 
GeneralRe: Pointer/address to CFormView Pin
Richard MacCutchan2-May-10 6:40
mveRichard MacCutchan2-May-10 6:40 
AnswerRe: Pointer/address to CFormView Pin
Richard MacCutchan1-May-10 21:27
mveRichard MacCutchan1-May-10 21:27 
QuestionMulti Threading for Graphic engines Pin
silversamand1-May-10 18:53
silversamand1-May-10 18:53 
AnswerRe: Multi Threading for Graphic engines Pin
Software_Developer1-May-10 21:02
Software_Developer1-May-10 21:02 
Creating a Worker Thread:

A worker thread is commonly used to handle backgrounds tasks
that the you shouldn't have to wait to continue using your application.
Creating a secondary thread is pretty easy task. There are only two steps:

Step 1. Create a function which will be executed by secondary thread.
This function has your code which suppose to executed in secondary thread.
UINT ProcName(LPVOID param)
{
  {
     Do Something
  }
return 0;
}

Step 2. Create thread by calling MFC function AfxBeginThread.

AfxBeginThread( ProcName, param, priority );


This thread remains active as long as thread's function is executing.
When thread function exits, the thread is destroyed.
You can set thread priorities according to your requirement.

Multithreading using MFC

http://www.dotnetheaven.com/Uploadfile/mahesh/MultithreadingUsingMFC05212005025727AM/MultithreadingUsingMFC.aspx


MFC User Interface Threads

http://www.codersource.net/MFC/MFCAdvanced/MFCUserInterfaceThreads.aspx

A multithreaded, OpenGL-enabled application

http://www.codeproject.com/KB/openGL/GLBase.aspx?msg=1865649

...
AnswerRe: Multi Threading for Graphic engines Pin
Michel Godfroid2-May-10 7:17
Michel Godfroid2-May-10 7:17 
GeneralRe: Multi Threading for Graphic engines Pin
ThatsAlok2-May-10 20:05
ThatsAlok2-May-10 20:05 
JokeRe: Multi Threading for Graphic engines Pin
Michel Godfroid2-May-10 20:08
Michel Godfroid2-May-10 20:08 
Questionhow to convert pcm 16 to pcm 8? Pin
wgh168991-May-10 17:24
wgh168991-May-10 17:24 
AnswerRe: how to convert pcm 16 to pcm 8? Pin
Software_Developer1-May-10 19:42
Software_Developer1-May-10 19:42 
QuestionAppending Data to End of File Pin
Fareed Rizkalla1-May-10 13:32
Fareed Rizkalla1-May-10 13:32 
AnswerRe: Appending Data to End of File Pin
Joe Woodbury1-May-10 14:40
professionalJoe Woodbury1-May-10 14:40 
QuestionWriteFile not working! Pin
Fareed Rizkalla1-May-10 7:29
Fareed Rizkalla1-May-10 7:29 
AnswerRe: WriteFile not working! Pin
Luc Pattyn1-May-10 7:38
sitebuilderLuc Pattyn1-May-10 7:38 
GeneralRe: WriteFile not working! Pin
Rajesh R Subramanian1-May-10 7:41
professionalRajesh R Subramanian1-May-10 7:41 
GeneralRe: WriteFile not working! Pin
Luc Pattyn1-May-10 8:22
sitebuilderLuc Pattyn1-May-10 8:22 

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.