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

C / C++ / MFC

 
AnswerRe: event log doubt Pin
Hamid Taebi28-Aug-06 20:26
professionalHamid Taebi28-Aug-06 20:26 
GeneralRe: event log doubt Pin
ashokvishnu28-Aug-06 21:36
ashokvishnu28-Aug-06 21:36 
GeneralRe: event log doubt Pin
Hamid Taebi28-Aug-06 22:10
professionalHamid Taebi28-Aug-06 22:10 
GeneralRe: event log doubt Pin
ashokvishnu29-Aug-06 1:40
ashokvishnu29-Aug-06 1:40 
QuestionOpenGl query on translate Pin
jamni28-Aug-06 17:33
jamni28-Aug-06 17:33 
QuestionBasic thread Pin
Oliver12328-Aug-06 14:18
Oliver12328-Aug-06 14:18 
AnswerRe: Basic thread Pin
Jun Du28-Aug-06 14:44
Jun Du28-Aug-06 14:44 
AnswerRe: Basic thread Pin
_AnsHUMAN_ 28-Aug-06 18:18
_AnsHUMAN_ 28-Aug-06 18:18 
There are two types of Threads:
1) User Interface Threads:
User-interface threads are commonly used to handle user input and respond to events and messages generated by the user.
For creating a user-interface thread derive a class from CWinThread.Then use RuntimeClass in the AfxBeginThread().
2) Worker Threads:
Worker threads are commonly used to complete tasks, such as recalculation, that do not require user input.
Creating a worker thread is a relatively simple task. Only two steps are required to get your thread running: implementing the controlling function and starting the thread.
This is what you are doing here. Creating a worker thread
Oliver123 wrote:
Will it create and run a thread

Yes this will Create a thread and the control is transferred to ThreadProc.
Avoid using Terminate Thread etc when you do want to exit from a thread. Always return from the thread function.
Oliver123 wrote:
without any form of coded loop

You need to have a loop in the thread function.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

AnswerRe: Basic thread Pin
Hamid Taebi28-Aug-06 19:30
professionalHamid Taebi28-Aug-06 19:30 
AnswerRe: Basic thread Pin
Oliver12329-Aug-06 9:46
Oliver12329-Aug-06 9:46 
Questionhow to compare an empty editbox Pin
samkook28-Aug-06 14:16
samkook28-Aug-06 14:16 
AnswerRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 15:16
Waldermort28-Aug-06 15:16 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 16:00
samkook28-Aug-06 16:00 
GeneralRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 16:47
Waldermort28-Aug-06 16:47 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 20:27
samkook28-Aug-06 20:27 
QuestionRe: how to compare an empty editbox Pin
David Crow29-Aug-06 2:47
David Crow29-Aug-06 2:47 
QuestionNonsense VC++ errors... Pin
Lord Kixdemp28-Aug-06 11:20
Lord Kixdemp28-Aug-06 11:20 
AnswerRe: Nonsense VC++ errors... Pin
led mike28-Aug-06 11:31
led mike28-Aug-06 11:31 
AnswerRe: Nonsense VC++ errors... Pin
khan++28-Aug-06 21:48
khan++28-Aug-06 21:48 
GeneralRe: Nonsense VC++ errors... Pin
Lord Kixdemp30-Aug-06 10:27
Lord Kixdemp30-Aug-06 10:27 
GeneralRe: Nonsense VC++ errors... Pin
khan++30-Aug-06 23:34
khan++30-Aug-06 23:34 
QuestionProperty Page Captions [modified] Pin
Scott P. Chapman28-Aug-06 11:08
Scott P. Chapman28-Aug-06 11:08 
AnswerRe: Property Page Captions Pin
David Crow29-Aug-06 2:44
David Crow29-Aug-06 2:44 
QuestionHow to change the font of a button's caption in MFC Pin
Eikthrynir28-Aug-06 9:49
Eikthrynir28-Aug-06 9:49 
QuestionRe: How to change the font of a button's caption in MFC Pin
David Crow28-Aug-06 10:24
David Crow28-Aug-06 10:24 

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.