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

C / C++ / MFC

 
AnswerRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 2:18
johnjitu1-Jun-09 2:18 
GeneralRe: String obtained from getwindowtext(); Pin
CPallini1-Jun-09 2:35
mveCPallini1-Jun-09 2:35 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:27
johnjitu1-Jun-09 3:27 
AnswerRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:13
David Crow1-Jun-09 3:13 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:33
johnjitu1-Jun-09 3:33 
GeneralRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:43
David Crow1-Jun-09 3:43 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:48
johnjitu1-Jun-09 3:48 
QuestionBehaviour of CreateThread compared to AfxBeginThread Pin
sunny_vc1-Jun-09 0:10
sunny_vc1-Jun-09 0:10 
Hi all,
Im working in vc6.0 using MFC.
When I create thread using AfxBeginThread(), if the thread is running then the CPU utilization shown is around 50%,
even though the thread is doing nothing.
It is called as:
AfxBeginThread(PortReadThread,gpSerialPortCtrl,THREAD_PRIORITY_NORMAL);

If I create the same thread using CreateThread(),even the thread is running the CPU utilization is around 0%

It is called as:
CreateThread( NULL,0,(LPTHREAD_START_ROUTINE) PortReadThread,(LPVOID) this,0,NULL);

Is this the expected behaviour.If not please tell me why its behaving like that.

Thanks in advance.

Regards,
Sunil Kumar

AnswerRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Naveen1-Jun-09 0:41
Naveen1-Jun-09 0:41 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
sunny_vc1-Jun-09 0:44
sunny_vc1-Jun-09 0:44 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Saurabh.Garg1-Jun-09 0:54
Saurabh.Garg1-Jun-09 0:54 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Naveen1-Jun-09 1:09
Naveen1-Jun-09 1:09 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Rajesh R Subramanian2-Nov-10 7:04
professionalRajesh R Subramanian2-Nov-10 7:04 
Questionwho recommand book about ood? Pin
Archy_Yu31-May-09 23:21
Archy_Yu31-May-09 23:21 
Questionprogramming GSM network with c language Pin
agetina31-May-09 22:05
agetina31-May-09 22:05 
AnswerRe: programming GSM network with c language Pin
CPallini31-May-09 22:20
mveCPallini31-May-09 22:20 
AnswerRe: programming GSM network with c language Pin
emrahustun31-May-09 22:28
emrahustun31-May-09 22:28 
AnswerRe: programming GSM network with c language Pin
randomrockers31-May-09 22:33
randomrockers31-May-09 22:33 
QuestionMouse Event Pin
Davitor31-May-09 21:48
Davitor31-May-09 21:48 
AnswerRe: Mouse Event Pin
«_Superman_»31-May-09 21:50
professional«_Superman_»31-May-09 21:50 
GeneralRe: Mouse Event Pin
Davitor31-May-09 23:08
Davitor31-May-09 23:08 
GeneralRe: Mouse Event Pin
David Crow1-Jun-09 3:17
David Crow1-Jun-09 3:17 
AnswerRe: Mouse Event Pin
CPallini31-May-09 21:51
mveCPallini31-May-09 21:51 
GeneralRe: Mouse Event Pin
Davitor1-Jun-09 2:53
Davitor1-Jun-09 2:53 
GeneralRe: Mouse Event Pin
CPallini1-Jun-09 3:02
mveCPallini1-Jun-09 3:02 

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.