Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TransparentBlt/AlphaBlend Error Pin
Christian Graus3-Nov-01 11:58
protectorChristian Graus3-Nov-01 11:58 
GeneralRe: TransparentBlt/AlphaBlend Error Pin
Chambers4-Nov-01 2:08
Chambers4-Nov-01 2:08 
GeneralADO GLOBAL CONNECTION Pin
3-Nov-01 5:23
suss3-Nov-01 5:23 
GeneralRe: ADO GLOBAL CONNECTION Pin
Christian Graus3-Nov-01 11:55
protectorChristian Graus3-Nov-01 11:55 
QuestionHow to lock Internet Temporary folder Pin
Huu Quynh3-Nov-01 4:23
Huu Quynh3-Nov-01 4:23 
AnswerRe: How to lock Internet Temporary folder Pin
Nish Nishant3-Nov-01 18:04
sitebuilderNish Nishant3-Nov-01 18:04 
AnswerRe: How to lock Internet Temporary folder Pin
Mike Nordell7-Nov-01 1:50
Mike Nordell7-Nov-01 1:50 
GeneralModify text color Pin
Maer7273-Nov-01 2:04
Maer7273-Nov-01 2:04 
GeneralRe: Modify text color Pin
Paolo Messina3-Nov-01 6:32
professionalPaolo Messina3-Nov-01 6:32 
GeneralRe: Modify text color Pin
Maer7273-Nov-01 18:10
Maer7273-Nov-01 18:10 
GeneralRe: Modify text color Pin
Nish Nishant3-Nov-01 18:13
sitebuilderNish Nishant3-Nov-01 18:13 
GeneralRe: Modify text color Pin
Nish Nishant3-Nov-01 18:10
sitebuilderNish Nishant3-Nov-01 18:10 
GeneralRe: Modify text color Pin
Maer7273-Nov-01 19:44
Maer7273-Nov-01 19:44 
GeneralRe: Modify text color Pin
Maer7273-Nov-01 19:48
Maer7273-Nov-01 19:48 
GeneralRe: Modify text color Pin
Nish Nishant3-Nov-01 20:47
sitebuilderNish Nishant3-Nov-01 20:47 
GeneralRe: Modify text color Pin
Maer7274-Nov-01 20:07
Maer7274-Nov-01 20:07 
QuestionHow to specify the CDROM another drive letter? Pin
Maer7273-Nov-01 1:43
Maer7273-Nov-01 1:43 
GeneralHTML View Window Pin
Steve Thresher2-Nov-01 23:45
Steve Thresher2-Nov-01 23:45 
GeneralRegister a Serivce in Win2000 Pin
Mr_Byte2-Nov-01 22:50
Mr_Byte2-Nov-01 22:50 
GeneralRe: Register a Serivce in Win2000 Pin
Anders Molin3-Nov-01 2:17
professionalAnders Molin3-Nov-01 2:17 
GeneralRe: Register a Serivce in Win2000 Pin
Anders Molin3-Nov-01 2:19
professionalAnders Molin3-Nov-01 2:19 
GeneralNeed EXTREME help on System-Wide Hook Pin
2-Nov-01 19:33
suss2-Nov-01 19:33 
Under VC++, I made a DLL as -Win32 Dinamic Link-. It has only one ".C" file containing the DLLMain two Function and the callback function. The first function loads the callback function and the second function unloads the callback function. Here is how the callback is loaded:

HHOOK hhGetMsg;
HINSTANCE hInstance;
LRESULT CALLBACK GetMsg (int iCode, WPARAM wParam, LPARAM lParam);

{
hhGetMsg = SetWindowsHookEx (WH_GETMESSAGE, (HHOKPROC) GetMsg, hInstance, 0);
}

with the GetMsg sending messages to a window everytime a message pops-up. There are no filters so all messages are SUPPOSEDLY "trapped". I used SendMessage to avoid a mess. Also calls CallNextHookEx.

I have looked at other codes that SUCCESSFULLY loaded a system-wide hook and My code are basically Identical. But my hook only monitors the APP/.EXE that loads it! I don't get it! The DLL and its functions are loaded from the APP/.EXE using LoadLibrary and GetProcAddress.

Need help! Thanks in advance.
Smile | :)
GeneralRe: Need EXTREME help on System-Wide Hook Pin
Youknowme2-Nov-01 19:48
Youknowme2-Nov-01 19:48 
GeneralMany Thanks :) Pin
3-Nov-01 0:45
suss3-Nov-01 0:45 
GeneralRe: Need EXTREME help on System-Wide Hook Pin
Sprudling3-Nov-01 13:10
Sprudling3-Nov-01 13:10 

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.