Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DLGTemplate MapDialogRect() problem Pin
Jason Teagle26-Sep-07 22:38
Jason Teagle26-Sep-07 22:38 
AnswerRe: DLGTemplate MapDialogRect() problem Pin
Mark Salsbery27-Sep-07 5:43
Mark Salsbery27-Sep-07 5:43 
QuestionLPT Listener using thread Pin
TPN26-Sep-07 21:05
TPN26-Sep-07 21:05 
AnswerRe: LPT Listener using thread Pin
Cedric Moonen26-Sep-07 22:19
Cedric Moonen26-Sep-07 22:19 
GeneralRe: LPT Listener using thread Pin
TPN27-Sep-07 0:44
TPN27-Sep-07 0:44 
GeneralRe: LPT Listener using thread Pin
Cedric Moonen27-Sep-07 4:34
Cedric Moonen27-Sep-07 4:34 
GeneralRe: LPT Listener using thread Pin
TPN27-Sep-07 19:53
TPN27-Sep-07 19:53 
AnswerRe: LPT Listener using thread Pin
Rahul Vaishnav27-Sep-07 1:13
Rahul Vaishnav27-Sep-07 1:13 
Hi,

I don't know much about LPT signal.
but i got simmiler problem in one of my project.

you do one thing begin main thread once some where in Oninitdialog() or On InitInstance().In main thread function in while(1) loop call child thread
& do your work in child thread & you must end that childthread in that childthread itself.


have a look on given sample....
OnInitInstance()
{
begin MyMainthread()...
}

void MyMainthread()
{
while(1)
{
begin mychildthread()
::Sleep(400);
}
}

void mychildthread()
{
//Do your work here....
........
.....
_EndThread();
}

I hope this will reduce your CPU Uses..... Hmmm | :|


Rahul Vaishnav
GeneralRe: LPT Listener using thread Pin
TPN27-Sep-07 19:57
TPN27-Sep-07 19:57 
GeneralRe: LPT Listener using thread Pin
JudyL_MD28-Sep-07 1:59
JudyL_MD28-Sep-07 1:59 
GeneralRe: LPT Listener using thread Pin
JudyL_MD28-Sep-07 2:03
JudyL_MD28-Sep-07 2:03 
AnswerRe: LPT Listener using thread Pin
David Crow27-Sep-07 3:30
David Crow27-Sep-07 3:30 
AnswerRe: LPT Listener using thread Pin
Rahul Vaishnav2-Oct-07 20:07
Rahul Vaishnav2-Oct-07 20:07 
Questiona pointer Pin
youbo26-Sep-07 21:01
youbo26-Sep-07 21:01 
AnswerRe: a pointer Pin
youbo26-Sep-07 21:31
youbo26-Sep-07 21:31 
GeneralRe: a pointer Pin
toxcct26-Sep-07 21:39
toxcct26-Sep-07 21:39 
AnswerRe: a pointer Pin
toxcct26-Sep-07 21:35
toxcct26-Sep-07 21:35 
GeneralRe: a pointer Pin
John R. Shaw26-Sep-07 21:52
John R. Shaw26-Sep-07 21:52 
GeneralRe: a pointer Pin
toxcct26-Sep-07 21:54
toxcct26-Sep-07 21:54 
GeneralRe: a pointer Pin
John R. Shaw26-Sep-07 23:12
John R. Shaw26-Sep-07 23:12 
AnswerRe: a pointer Pin
baerten26-Sep-07 21:37
baerten26-Sep-07 21:37 
GeneralRe: a pointer Pin
youbo26-Sep-07 21:45
youbo26-Sep-07 21:45 
GeneralRe: a pointer [modified] Pin
Russell'26-Sep-07 22:29
Russell'26-Sep-07 22:29 
GeneralRe: a pointer Pin
toxcct26-Sep-07 22:44
toxcct26-Sep-07 22:44 
GeneralRe: a pointer Pin
Russell'26-Sep-07 22:56
Russell'26-Sep-07 22:56 

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.