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

C / C++ / MFC

 
QuestionData Conversion Byte to Integer Pin
quantimizer13-Nov-07 21:31
quantimizer13-Nov-07 21:31 
AnswerRe: Data Conversion Byte to Integer Pin
Peter Weyzen13-Nov-07 21:54
Peter Weyzen13-Nov-07 21:54 
QuestionRe: Data Conversion Byte to Integer Pin
David Crow14-Nov-07 3:35
David Crow14-Nov-07 3:35 
AnswerRe: Data Conversion Byte to Integer Pin
Peter Weyzen14-Nov-07 10:14
Peter Weyzen14-Nov-07 10:14 
AnswerRe: Data Conversion Byte to Integer Pin
CPallini13-Nov-07 22:19
mveCPallini13-Nov-07 22:19 
GeneralRe: Data Conversion Byte to Integer Pin
quantimizer14-Nov-07 1:26
quantimizer14-Nov-07 1:26 
GeneralRe: Data Conversion Byte to Integer Pin
CPallini14-Nov-07 1:35
mveCPallini14-Nov-07 1:35 
QuestionProblem with CPU Usage Pin
ashishbhatt13-Nov-07 21:26
ashishbhatt13-Nov-07 21:26 
Hi All,

I am using MFC Activex Control project in VS 2005.

In my project I am doing something like hooking. I have set these hooks from application.In this hooking , I have created some windows procedure(using CALLBACK function) through which I get messages into it contineously(Messages are like when my desktop window changed,cursor position changed,anything something happens on the the screen).For this I have to check contineously for update.

And now my problem is like that when I call this hooking function than it starts executing and it does well and here I get all tese messages perfactly but during these constant message transfering my cpu usage goes upto 50%.So, that is very bad for me I want to reduse this cpu overhead near upto 10%.So, do you have any suggetion what to do for that???

I will Appreciate your Answer.

Thanks in Advance.

Ashish Bhatt

GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 21:58
ashishbhatt13-Nov-07 21:58 
GeneralRe: Problem with CPU Usage Pin
Peter Weyzen13-Nov-07 22:01
Peter Weyzen13-Nov-07 22:01 
GeneralRe: Problem with CPU Usage Pin
ThatsAlok13-Nov-07 23:25
ThatsAlok13-Nov-07 23:25 
GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 23:41
ashishbhatt13-Nov-07 23:41 
GeneralRe: Problem with CPU Usage Pin
ashishbhatt13-Nov-07 23:38
ashishbhatt13-Nov-07 23:38 
GeneralRe: Problem with CPU Usage Pin
Cedric Moonen14-Nov-07 0:01
Cedric Moonen14-Nov-07 0:01 
GeneralRe: Problem with CPU Usage Pin
Cedric Moonen13-Nov-07 22:21
Cedric Moonen13-Nov-07 22:21 
AnswerRe: Problem with CPU Usage Pin
Peter Weyzen13-Nov-07 21:59
Peter Weyzen13-Nov-07 21:59 
QuestionMemory usage Pin
g_sandipan13-Nov-07 20:50
g_sandipan13-Nov-07 20:50 
AnswerRe: Memory usage Pin
only coder13-Nov-07 21:00
only coder13-Nov-07 21:00 
GeneralRe: Memory usage Pin
g_sandipan13-Nov-07 23:00
g_sandipan13-Nov-07 23:00 
AnswerRe: Memory usage Pin
Roger Stoltz14-Nov-07 0:47
Roger Stoltz14-Nov-07 0:47 
QuestionNeed help with array in C [modified] Pin
ndtoan1313-Nov-07 20:49
ndtoan1313-Nov-07 20:49 
AnswerRe: Need help with array in C Pin
Leslie Sanford13-Nov-07 21:26
Leslie Sanford13-Nov-07 21:26 
AnswerRe: Need help with array in C Pin
CPallini13-Nov-07 21:38
mveCPallini13-Nov-07 21:38 
GeneralRe: Need help with array in C Pin
ndtoan1313-Nov-07 21:50
ndtoan1313-Nov-07 21:50 
GeneralRe: Need help with array in C Pin
ndtoan1313-Nov-07 22:11
ndtoan1313-Nov-07 22:11 

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.