Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing1-Sep-08 14:28
EvoWing1-Sep-08 14:28 
AnswerRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing2-Sep-08 3:55
EvoWing2-Sep-08 3:55 
GeneralRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
Mark Salsbery2-Sep-08 7:05
Mark Salsbery2-Sep-08 7:05 
QuestionRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
EvoWing7-Sep-08 4:55
EvoWing7-Sep-08 4:55 
QuestionRe: CAsyncSocket fails after a few successful OnReceive()'s Pin
Mark Salsbery8-Sep-08 8:17
Mark Salsbery8-Sep-08 8:17 
Questionconcatenate linked list of characters Pin
Sadaiyappan1-Sep-08 13:27
Sadaiyappan1-Sep-08 13:27 
AnswerRe: concatenate linked list of characters Pin
Robert.C.Cartaino1-Sep-08 14:51
Robert.C.Cartaino1-Sep-08 14:51 
QuestionA Global Keyboard hook problem. Pin
emmmatty11-Sep-08 9:33
emmmatty11-Sep-08 9:33 
I am creating application to track the usage of Function keys in the system. For that purpose i installed a system wide hook. The program also have an interface which the user can configure various settings . The hook is installed in the InitDialog of this dialog. User can also minimize the dialog to system tray. The problem is that the hook works only when the dialog is visible. If the user minimizes the app to the system tray the hook stops processing messages.
//Inside the Globalhook.dll

extern "C"
__declspec(dllexport) void InstallHotkeyHook()
{ 
	
	hHotkeyHook = SetWindowsHookEx(WH_KEYBOARD, HotkeyMessageProc, hMod, 0); // hMod is taken from dllmain.

}


The above function is called to install the hook from InitDialog.


Please help.

I am using VS6.0 and OS is WinXP SP2

Regards,
John
AnswerRe: A Global Keyboard hook problem. Pin
Naveen1-Sep-08 15:21
Naveen1-Sep-08 15:21 
GeneralRe: A Global Keyboard hook problem. Pin
emmmatty11-Sep-08 18:49
emmmatty11-Sep-08 18:49 
GeneralRe: A Global Keyboard hook problem. Pin
Naveen1-Sep-08 19:00
Naveen1-Sep-08 19:00 
AnswerRe: A Global Keyboard hook problem. Pin
Rajesh R Subramanian1-Sep-08 20:51
professionalRajesh R Subramanian1-Sep-08 20:51 
Questionrand() always returns 18467...whats going on.. [modified] Pin
montiee1-Sep-08 8:47
montiee1-Sep-08 8:47 
AnswerRe: rand() always returns 18467...whats going on.. Pin
Mark Salsbery1-Sep-08 11:20
Mark Salsbery1-Sep-08 11:20 
GeneralRe: rand() always returns 18467...whats going on.. Pin
montiee1-Sep-08 19:23
montiee1-Sep-08 19:23 
QuestionMy application is closing when i hit enter button through keyboard Pin
hariakuthota1-Sep-08 8:12
hariakuthota1-Sep-08 8:12 
AnswerRe: My application is closing when i hit enter button through keyboard Pin
Cedric Moonen1-Sep-08 8:16
Cedric Moonen1-Sep-08 8:16 
AnswerRe: My application is closing when i hit enter button through keyboard Pin
onlyjaypatel1-Sep-08 19:24
onlyjaypatel1-Sep-08 19:24 
Question3D World Pin
MrMcIntyre1-Sep-08 7:34
MrMcIntyre1-Sep-08 7:34 
AnswerRe: 3D World Pin
Cedric Moonen1-Sep-08 7:50
Cedric Moonen1-Sep-08 7:50 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 8:07
MrMcIntyre1-Sep-08 8:07 
GeneralRe: 3D World Pin
Cedric Moonen1-Sep-08 8:14
Cedric Moonen1-Sep-08 8:14 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 9:06
MrMcIntyre1-Sep-08 9:06 
GeneralRe: 3D World Pin
El Corazon1-Sep-08 15:12
El Corazon1-Sep-08 15:12 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 9:26
MrMcIntyre1-Sep-08 9:26 

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.