Click here to Skip to main content
16,020,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading bitmap bytes from a font file Pin
Vissu8922-Aug-06 4:16
Vissu8922-Aug-06 4:16 
GeneralRe: reading bitmap bytes from a font file Pin
Steve S23-Aug-06 3:19
Steve S23-Aug-06 3:19 
GeneralRe: reading bitmap bytes from a font file Pin
Vissu8923-Aug-06 16:57
Vissu8923-Aug-06 16:57 
GeneralRe: reading bitmap bytes from a font file Pin
Steve S23-Aug-06 21:51
Steve S23-Aug-06 21:51 
Questionlow leve keyboard hook callback not called from service [modified] Pin
_tasleem21-Aug-06 21:12
_tasleem21-Aug-06 21:12 
AnswerRe: low leve keyboard hook callback not called from service Pin
Stephen Hewitt21-Aug-06 21:59
Stephen Hewitt21-Aug-06 21:59 
GeneralRe: low leve keyboard hook callback not called from service [modified] Pin
_tasleem21-Aug-06 22:31
_tasleem21-Aug-06 22:31 
GeneralRe: low leve keyboard hook callback not called from service Pin
Blake Miller22-Aug-06 9:00
Blake Miller22-Aug-06 9:00 
I am assuming your hInstance is the instance of a DLL you loaded that contains the hook procedure as an exported function? Otherwise, this will not work.

The 'global' hook procedure can not be in your service EXE file, it must be in a DLL your service loads dynamically.

Try using LoadLibrary and GetProcAddress to make it work.

SetWindowsHookEx(WH_KEYBOARD_LL, LowerLevelKeyboardProc, hInstance,0);

It does not make sense to load a local keyboard hook in your service, since the service will never have 'focus' under 'normal' circumstances.


Any sufficiently gross incompetence is nearly indistinguishable from malice.

GeneralRe: low leve keyboard hook callback not called from service Pin
_tasleem22-Aug-06 19:44
_tasleem22-Aug-06 19:44 
AnswerRe: low leve keyboard hook callback not called from service Pin
Hamid Taebi21-Aug-06 22:42
professionalHamid Taebi21-Aug-06 22:42 
GeneralRe: low leve keyboard hook callback not called from service [modified] Pin
_tasleem22-Aug-06 0:53
_tasleem22-Aug-06 0:53 
QuestionObject matching algorithm in image processing using VC++ [modified] Pin
dinesh_IP21-Aug-06 20:40
dinesh_IP21-Aug-06 20:40 
QuestionDatabase query in VC++?? Pin
madhu_v21-Aug-06 19:59
madhu_v21-Aug-06 19:59 
QuestionCString to double Pin
QuickDeveloper21-Aug-06 19:59
QuickDeveloper21-Aug-06 19:59 
AnswerRe: CString to double Pin
Justin Tay21-Aug-06 20:19
Justin Tay21-Aug-06 20:19 
AnswerRe: CString to double Pin
Hamid Taebi21-Aug-06 20:49
professionalHamid Taebi21-Aug-06 20:49 
Questioni want to send and receive using USB Port in VC++ Pin
ppadmaraju21-Aug-06 19:55
ppadmaraju21-Aug-06 19:55 
AnswerRe: i want to send and receive using USB Port in VC++ Pin
Cedric Moonen21-Aug-06 20:25
Cedric Moonen21-Aug-06 20:25 
QuestionProblem with Device Driver Launcher Program Pin
Pratheep Kenny21-Aug-06 19:36
Pratheep Kenny21-Aug-06 19:36 
AnswerRe: Problem with Device Driver Launcher Program Pin
kakan21-Aug-06 19:57
professionalkakan21-Aug-06 19:57 
GeneralRe: Problem with Device Driver Launcher Program Pin
Pratheep Kenny21-Aug-06 20:52
Pratheep Kenny21-Aug-06 20:52 
QuestionRe: Problem with Device Driver Launcher Program Pin
kakan21-Aug-06 22:34
professionalkakan21-Aug-06 22:34 
AnswerRe: Problem with Device Driver Launcher Program [modified] Pin
Pratheep Kenny21-Aug-06 22:47
Pratheep Kenny21-Aug-06 22:47 
GeneralRe: Problem with Device Driver Launcher Program Pin
kakan21-Aug-06 23:46
professionalkakan21-Aug-06 23:46 
GeneralRe: Problem with Device Driver Launcher Program Pin
Pratheep Kenny22-Aug-06 20:37
Pratheep Kenny22-Aug-06 20:37 

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.