Click here to Skip to main content
16,013,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem converting a CComBSTR to LPCTSTR with CW2CT Pin
JC Gauthier30-May-02 4:27
JC Gauthier30-May-02 4:27 
GeneralRe: Problem converting a CComBSTR to LPCTSTR with CW2CT Pin
soptest30-May-02 8:36
soptest30-May-02 8:36 
General_popen issue Pin
Stew29-May-02 9:41
Stew29-May-02 9:41 
GeneralRe: _popen issue Pin
Joaquín M López Muñoz29-May-02 9:46
Joaquín M López Muñoz29-May-02 9:46 
GeneralRe: _popen issue Pin
soptest29-May-02 9:56
soptest29-May-02 9:56 
GeneralWeird Keyboard Hooking Issue Pin
John Aldrich29-May-02 9:02
John Aldrich29-May-02 9:02 
GeneralRe: Weird Keyboard Hooking Issue Pin
Joaquín M López Muñoz29-May-02 9:34
Joaquín M López Muñoz29-May-02 9:34 
GeneralI think I got it now Pin
Joaquín M López Muñoz29-May-02 9:40
Joaquín M López Muñoz29-May-02 9:40 
Paying closer attention to the docs, there's a line that says:

All global hook functions must be in libraries

So, you've got to move your code to a DLL. As for why it seemed to work on Debug mode, I guess it is because the executable is run in the context of the debugger process, acting like a sort of DLL on the eye of the system (To check this out, symply execute your debug .EXE by double clicking it outside the IDE. If my theory proves right, you'll get the same behavior as in release mode --no global hooking.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralMeasureItem doesn't get called. Pin
29-May-02 9:07
suss29-May-02 9:07 
GeneralRe: MeasureItem doesn't get called. Pin
Paul M Watt29-May-02 9:22
mentorPaul M Watt29-May-02 9:22 
GeneralRe: MeasureItem doesn't get called. Pin
29-May-02 9:46
suss29-May-02 9:46 
GeneralQuestion Pin
Steve L.29-May-02 9:04
Steve L.29-May-02 9:04 
GeneralRe: Question Pin
Mauricio Ritter29-May-02 9:20
Mauricio Ritter29-May-02 9:20 
GeneralMaximum value of unsigned long Pin
Hoang Le29-May-02 8:54
Hoang Le29-May-02 8:54 
GeneralRe: Maximum value of unsigned long Pin
Joaquín M López Muñoz29-May-02 8:50
Joaquín M López Muñoz29-May-02 8:50 
GeneralRe: Maximum value of unsigned long Pin
Christopher Lord29-May-02 12:49
Christopher Lord29-May-02 12:49 
GeneralRe: Maximum value of unsigned long Pin
Michael Dunn29-May-02 17:52
sitebuilderMichael Dunn29-May-02 17:52 
GeneralRe: Maximum value of unsigned long Pin
Joaquín M López Muñoz29-May-02 19:59
Joaquín M López Muñoz29-May-02 19:59 
GeneralRe: Maximum value of unsigned long Pin
Michael Dunn29-May-02 20:24
sitebuilderMichael Dunn29-May-02 20:24 
GeneralRe: Maximum value of unsigned long Pin
Joaquín M López Muñoz29-May-02 21:52
Joaquín M López Muñoz29-May-02 21:52 
GeneralRe: Maximum value of unsigned long Pin
Mike Nordell1-Jun-02 0:54
Mike Nordell1-Jun-02 0:54 
GeneralRe: Maximum value of unsigned long Pin
Michael Dunn1-Jun-02 6:22
sitebuilderMichael Dunn1-Jun-02 6:22 
GeneralRe: Maximum value of unsigned long Pin
Mike Nordell1-Jun-02 7:57
Mike Nordell1-Jun-02 7:57 
GeneralCreate a bitmap file Pin
Francis B.29-May-02 8:36
Francis B.29-May-02 8:36 
GeneralChange Font to the Default Printer! Pin
29-May-02 7:51
suss29-May-02 7:51 

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.