Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Information extraction from website Pin
georgiek5023-Dec-02 12:23
georgiek5023-Dec-02 12:23 
Generallinking problem Pin
Luke Murray22-Dec-02 0:19
Luke Murray22-Dec-02 0:19 
GeneralRe: linking problem Pin
Mike Nordell22-Dec-02 0:32
Mike Nordell22-Dec-02 0:32 
GeneralRe: linking problem Pin
Luke Murray22-Dec-02 0:51
Luke Murray22-Dec-02 0:51 
GeneralRe: linking problem Pin
Michael Dunn22-Dec-02 5:37
sitebuilderMichael Dunn22-Dec-02 5:37 
GeneralRe: linking problem Pin
Luke Murray22-Dec-02 19:43
Luke Murray22-Dec-02 19:43 
GeneralRe: linking problem Pin
Scott H. Settlemier23-Dec-02 6:01
Scott H. Settlemier23-Dec-02 6:01 
Generalwhere can i download visual c++ setup!! Pin
dianazheng21-Dec-02 23:23
dianazheng21-Dec-02 23:23 
GeneralRe: where can i download visual c++ setup!! Pin
Mike Nordell22-Dec-02 0:34
Mike Nordell22-Dec-02 0:34 
GeneralRe: where can i download visual c++ setup!! Pin
Brian Delahunty22-Dec-02 3:12
Brian Delahunty22-Dec-02 3:12 
GeneralRe: where can i download visual c++ setup!! Pin
dianazheng22-Dec-02 14:35
dianazheng22-Dec-02 14:35 
GeneralRe: where can i download visual c++ setup!! Pin
Jacques Troux22-Dec-02 5:40
sussJacques Troux22-Dec-02 5:40 
GeneralRe: where can i download visual c++ setup!! Pin
Christian Graus22-Dec-02 11:21
protectorChristian Graus22-Dec-02 11:21 
GeneralCreateProcessWithLogonW Pin
Mazdak21-Dec-02 21:37
Mazdak21-Dec-02 21:37 
GeneralRe: CreateProcessWithLogonW Pin
Gary R. Wheeler22-Dec-02 5:15
Gary R. Wheeler22-Dec-02 5:15 
GeneralRe: CreateProcessWithLogonW Pin
Michael Dunn22-Dec-02 5:41
sitebuilderMichael Dunn22-Dec-02 5:41 
Generalcallback Pin
king_of_the_world21-Dec-02 20:51
king_of_the_world21-Dec-02 20:51 
GeneralRe: callback Pin
Paul M Watt21-Dec-02 21:48
mentorPaul M Watt21-Dec-02 21:48 
GeneralRe: callback Pin
king_of_the_world22-Dec-02 2:16
king_of_the_world22-Dec-02 2:16 
GeneralRe: callback Pin
Paul M Watt22-Dec-02 7:11
mentorPaul M Watt22-Dec-02 7:11 
GeneralRe: callback Pin
king_of_the_world22-Dec-02 9:46
king_of_the_world22-Dec-02 9:46 
GeneralRe: callback Pin
Paul M Watt22-Dec-02 12:20
mentorPaul M Watt22-Dec-02 12:20 
GeneralRe: callback Pin
king_of_the_world25-Dec-02 20:11
king_of_the_world25-Dec-02 20:11 
thanks, I installed a global hook and played around with it. but it doesn't work well, in particular, if I do the following, does it it put all the variables in global dll? it got lots of weird behavior from my diligently produced code(I copy and pasted below). Sometimes if I restarted my computer it seems that the hook was catching the mousedown message if i press anywhere on desktop, but sometimes it doesn't, in the best case it's crashing the system. would you provide me with some code snipet that install a mousehook and print the mouse position when the user left click the mouse?
thanks a million!

#pragma data_seg(".IdleTrac") // you must define as SHARED in .def
HHOOK mouseHook,keyboardHook;
HINSTANCE g_hinstance;
#pragma data_seg()
#pragma comment(linker, "/section:.IdleTrac,rws")

LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lparam){
switch(wParam){
case 27:
UnhookWindowsHookEx(mouseHook);
UnhookWindowsHookEx(keyboardHook);
errstream.close();
PostQuitMessage(0);
}
return 0;
}

LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lparam){

// MessageBox(hWnd,"in mouse proc ","",MB_OK);
MOUSEHOOKSTRUCT* mousehook=(MOUSEHOOKSTRUCT*)lparam;
POINT p=mousehook->pt;
switch(wParam){
case WM_LBUTTONDOWN:
MessageBox(hWnd,"leftt button down","",MB_OK);
// errstream<<"mouse position is "<
QuestionHow to build tool in MS Office? Pin
JATE21-Dec-02 18:37
JATE21-Dec-02 18:37 
AnswerRe: How to build tool in MS Office? Pin
Al_Pennyworth23-Dec-02 2:45
Al_Pennyworth23-Dec-02 2:45 

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.