Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Post Message From Dlg -> Specific View Pin
Ed K19-Dec-05 5:58
Ed K19-Dec-05 5:58 
QuestionCPropertySheet : How to write to Tabs without using SetActivePage Pin
sdancer7518-Dec-05 23:59
sdancer7518-Dec-05 23:59 
AnswerRe: CPropertySheet : How to write to Tabs without using SetActivePage Pin
Owner drawn19-Dec-05 1:47
Owner drawn19-Dec-05 1:47 
QuestionPlease help!!! Pin
emmatty18-Dec-05 21:54
emmatty18-Dec-05 21:54 
AnswerRe: Please help!!! Pin
toxcct18-Dec-05 22:07
toxcct18-Dec-05 22:07 
AnswerRe: Please help!!! Pin
Bob Stanneveld19-Dec-05 0:49
Bob Stanneveld19-Dec-05 0:49 
Questionboost:shared ptr in classes Pin
Bernhard18-Dec-05 21:51
Bernhard18-Dec-05 21:51 
Questionwindows api: system wide keyboard hook problem Pin
INA_ctive18-Dec-05 21:35
INA_ctive18-Dec-05 21:35 
Im trying to make a program that does system wide keyboard hook. This program consist of two parts, and those are:
1. a DLL which consist of three functions: InstallHook, HookProc (the hook procedure), and RemoveHook.
2. an EXE which will load the DLL and uses/calls all the functions

what the program does is, everytime there's an input from the keyobard it will pop up a messagebox saying "whoa!".

the problem is that this program only monitors keystrokes on it's own thread. when the program loses focus, it will not be able to detect keystrokes and output the "whoa!" message anymore.

just my thought, i think the problem lies within my installhook function within the DLL, because im not really sure how to fill the third and fourth parameters (msdn kinda confuses me)
[code]
SetWindowsHookEx(WH_KEYBOARD, (HOOKPROC) HookProc, GetModuleHandle(NULL), 0);
[/code]

this is the full source code of the program.
DLL source : http://pastebin.com/468968
Exe Source : http://pastebin.com/468969

This problem really confuses me since there are no error displayed on the compiler, and the program just looks fine without crash or anything.
Thank you very much for your time and help.
- Ganeshwara

-- modified at 3:40 Monday 19th December, 2005
AnswerRe: windows api: system wide keyboard hook problem Pin
Joel Lucsy19-Dec-05 4:07
Joel Lucsy19-Dec-05 4:07 
Generalit resolved! Pin
INA_ctive19-Dec-05 5:04
INA_ctive19-Dec-05 5:04 
Questionshared dll instance Pin
misha_grewal18-Dec-05 21:03
misha_grewal18-Dec-05 21:03 
AnswerRe: shared dll instance Pin
ThatsAlok19-Dec-05 1:15
ThatsAlok19-Dec-05 1:15 
AnswerMFC as shared dll: shared dll instance Pin
misha_grewal19-Dec-05 3:24
misha_grewal19-Dec-05 3:24 
GeneralRe: MFC as shared dll: shared dll instance Pin
ThatsAlok19-Dec-05 21:18
ThatsAlok19-Dec-05 21:18 
Questionhide process Error! Pin
szcococut18-Dec-05 20:59
szcococut18-Dec-05 20:59 
AnswerRe: hide process Error! Pin
szcococut19-Dec-05 21:24
szcococut19-Dec-05 21:24 
QuestionMesssage queue size in window Pin
Akshay_Shingrup18-Dec-05 20:48
Akshay_Shingrup18-Dec-05 20:48 
QuestionAbout call a DLL built by MATLAB Com builder in VC++ Pin
QuangDien18-Dec-05 20:30
QuangDien18-Dec-05 20:30 
QuestionHow to remove Ok Cancel Apply buttons from property sheet Pin
Owner drawn18-Dec-05 18:11
Owner drawn18-Dec-05 18:11 
AnswerRe: How to remove Ok Cancel Apply buttons from property sheet Pin
Rajesh R Subramanian18-Dec-05 20:11
professionalRajesh R Subramanian18-Dec-05 20:11 
GeneralRe: How to remove Ok Cancel Apply buttons from property sheet Pin
Owner drawn18-Dec-05 20:17
Owner drawn18-Dec-05 20:17 
QuestionHow to set Status message from doc or view class? Pin
BlrBoy18-Dec-05 17:33
BlrBoy18-Dec-05 17:33 
AnswerRe: How to set Status message from doc or view class? Pin
Arman S.19-Dec-05 1:08
Arman S.19-Dec-05 1:08 
Questionvideo streaming "download and play" Pin
ACMTino18-Dec-05 12:22
ACMTino18-Dec-05 12:22 
AnswerRe: video streaming "download and play" Pin
vikas amin18-Dec-05 19:33
vikas amin18-Dec-05 19:33 

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.