Click here to Skip to main content
16,016,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fastest way to read entire file into memory Pin
Rein Hillmann26-Jun-04 22:16
Rein Hillmann26-Jun-04 22:16 
GeneralRe: Fastest way to read entire file into memory Pin
georgiek5027-Jun-04 7:00
georgiek5027-Jun-04 7:00 
GeneralRe: Fastest way to read entire file into memory Pin
palbano28-Jun-04 4:57
palbano28-Jun-04 4:57 
GeneralRe: Fastest way to read entire file into memory Pin
Neville Franks26-Jun-04 23:08
Neville Franks26-Jun-04 23:08 
GeneralRe: Fastest way to read entire file into memory Pin
John R. Shaw28-Jun-04 19:19
John R. Shaw28-Jun-04 19:19 
GeneralRe: Fastest way to read entire file into memory Pin
georgiek5029-Jun-04 10:36
georgiek5029-Jun-04 10:36 
GeneralQuery on WH_KEYBOARD Experts help Pin
26-Jun-04 21:15
suss26-Jun-04 21:15 
GeneralRe: Query on WH_KEYBOARD Experts help Pin
Jörgen Sigvardsson27-Jun-04 11:12
Jörgen Sigvardsson27-Jun-04 11:12 
blacktiger007 wrote:
I registered this hook using using SetWindowsHookEx and called in OnCreate of CMainfrm.cpp.
But this is not getting called and let me know what to do so that this hook should call .


What is not being called? SetWindowsHookEx or the hook you are trying to install?


blacktiger007 wrote:
But hooks will getcalled only before the event is passed to WndProc?

Hooks are called before the window message is delivered to a message pump.


If you are trying to install a global hook, please note the section in the MSDN docs: The global hooks are a shared resource, and installing one affects all applications in the same desktop as the calling thread. All global hook functions must be in libraries. Global hooks should be restricted to special-purpose applications or to use as a development aid during application debugging. Libraries that no longer need a hook should remove its hook procedure.

Are you installing a global hook? If so, do you really need the global hook? If you are installing a global hook and you really need it, there's this[^] article.

--
Ich bin Joachim von Hassel, und ich bin Pilot der Bundeswehr.
Welle: Erdball - F104-G Starfighter

GeneralRe: Query on WH_KEYBOARD Experts help Pin
Member 115017627-Jun-04 17:59
Member 115017627-Jun-04 17:59 
GeneralRe: Query on WH_KEYBOARD Experts help Pin
Jörgen Sigvardsson28-Jun-04 2:13
Jörgen Sigvardsson28-Jun-04 2:13 
GeneralRe: Query on WH_KEYBOARD Experts help Pin
gamitech27-Jun-04 11:48
gamitech27-Jun-04 11:48 
GeneralRe: Query on WH_KEYBOARD Experts help Pin
Member 115017627-Jun-04 18:17
Member 115017627-Jun-04 18:17 
Generalabout IO Completion Ports Pin
regale26-Jun-04 17:02
regale26-Jun-04 17:02 
GeneralRe: about IO Completion Ports Pin
valikac27-Jun-04 5:38
valikac27-Jun-04 5:38 
GeneralRe: about IO Completion Ports Pin
regale27-Jun-04 19:19
regale27-Jun-04 19:19 
GeneralLinking to C++ Pin
c. s.26-Jun-04 15:46
c. s.26-Jun-04 15:46 
GeneralRe: Linking to C++ Pin
darkbyte27-Jun-04 4:29
darkbyte27-Jun-04 4:29 
QuestionUsing Alt key in Windows app? Pin
IGx8926-Jun-04 11:57
IGx8926-Jun-04 11:57 
AnswerRe: Using Alt key in Windows app? Pin
Jörgen Sigvardsson27-Jun-04 11:04
Jörgen Sigvardsson27-Jun-04 11:04 
GeneralRe: Using Alt key in Windows app? Pin
IGx8928-Jun-04 13:45
IGx8928-Jun-04 13:45 
Generalpassing values from edit boxes to the button Pin
lyn26-Jun-04 10:34
lyn26-Jun-04 10:34 
GeneralRe: passing values from edit boxes to the button Pin
DougW4826-Jun-04 18:08
DougW4826-Jun-04 18:08 
GeneralRe: passing values from edit boxes to the button Pin
lyn26-Jun-04 18:17
lyn26-Jun-04 18:17 
GeneralRe: passing values from edit boxes to the button Pin
PJ Arends26-Jun-04 18:24
professionalPJ Arends26-Jun-04 18:24 
GeneralNeed a GetClusterSize function Pin
Paul Steane26-Jun-04 8:47
Paul Steane26-Jun-04 8:47 

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.