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

C / C++ / MFC

 
QuestionHow to share memory between instances of dll Pin
Sauce!25-Jan-10 2:10
Sauce!25-Jan-10 2:10 
QuestionRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 2:21
mveCPallini25-Jan-10 2:21 
AnswerRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 2:39
Sauce!25-Jan-10 2:39 
GeneralRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 2:58
mveCPallini25-Jan-10 2:58 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 3:03
Sauce!25-Jan-10 3:03 
GeneralRe: How to share memory between instances of dll Pin
Cedric Moonen25-Jan-10 3:05
Cedric Moonen25-Jan-10 3:05 
GeneralRe: How to share memory between instances of dll Pin
CPallini25-Jan-10 3:31
mveCPallini25-Jan-10 3:31 
GeneralRe: How to share memory between instances of dll Pin
Stephen Hewitt25-Jan-10 3:26
Stephen Hewitt25-Jan-10 3:26 
AnswerRe: How to share memory between instances of dll Pin
Joe Woodbury25-Jan-10 12:08
professionalJoe Woodbury25-Jan-10 12:08 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 18:09
Sauce!25-Jan-10 18:09 
GeneralRe: How to share memory between instances of dll Pin
Joe Woodbury25-Jan-10 18:35
professionalJoe Woodbury25-Jan-10 18:35 
GeneralRe: How to share memory between instances of dll Pin
Sauce!25-Jan-10 19:30
Sauce!25-Jan-10 19:30 
QuestionIs there any alternative for GetAsyncKeyState( int ) function in visual c++? Pin
Nilesh Hamane25-Jan-10 0:05
Nilesh Hamane25-Jan-10 0:05 
QuestionRe: Is there any alternative for GetAsyncKeyState( int ) function in visual c++? Pin
CPallini25-Jan-10 0:23
mveCPallini25-Jan-10 0:23 
AnswerRe: Is there any alternative for GetAsyncKeyState( int ) function in visual c++? Pin
Nilesh Hamane25-Jan-10 0:46
Nilesh Hamane25-Jan-10 0:46 
GeneralRe: Is there any alternative for GetAsyncKeyState( int ) function in visual c++? Pin
Rajesh R Subramanian25-Jan-10 1:18
professionalRajesh R Subramanian25-Jan-10 1:18 
AnswerRe: Is there any alternative for GetAsyncKeyState( int ) function in visual c++? Pin
Code-o-mat25-Jan-10 3:13
Code-o-mat25-Jan-10 3:13 
I see you already found a better way to do what you want, so this is just an "additional footnote" to your original problem: to make your while loop less CPU hungry you can add a Sleep(1) call somewhere inside it, or maybe use SwithToThread[^] (althorough SwitchTothread seems to be much less effective than Sleep), this way the loop yields execution to other threads and does not eat up all the CPU power. I mean something like:
while( 1 )
{
   for( int i = 0; i < 256; i++ )
   {
        GetAsyncKeyState( i );
   }
   Sleep(1);
}


> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

QuestionDialog created in Taskbar Pin
Anu_Bala24-Jan-10 23:21
Anu_Bala24-Jan-10 23:21 
AnswerRe: Dialog created in Taskbar Pin
LunaticFringe25-Jan-10 0:35
LunaticFringe25-Jan-10 0:35 
GeneralRe: Dialog created in Taskbar Pin
Anu_Bala25-Jan-10 1:03
Anu_Bala25-Jan-10 1:03 
QuestionX,Y of maximised window Pin
Anu_Bala24-Jan-10 22:30
Anu_Bala24-Jan-10 22:30 
AnswerRe: X,Y of maximised window Pin
CPallini24-Jan-10 23:15
mveCPallini24-Jan-10 23:15 
GeneralRe: X,Y of maximised window Pin
Anu_Bala24-Jan-10 23:33
Anu_Bala24-Jan-10 23:33 
QuestionRe: X,Y of maximised window Pin
Nelek24-Jan-10 23:38
protectorNelek24-Jan-10 23:38 
GeneralRe: X,Y of maximised window Pin
CPallini24-Jan-10 23:38
mveCPallini24-Jan-10 23:38 

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.