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

C / C++ / MFC

 
GeneralRe: Separete the file extension from a filename Pin
Jörgen Sigvardsson21-Dec-02 10:15
Jörgen Sigvardsson21-Dec-02 10:15 
GeneralRe: Separete the file extension from a filename Pin
Al_Pennyworth23-Dec-02 2:50
Al_Pennyworth23-Dec-02 2:50 
Generaldetect mouse click Pin
king_of_the_world19-Dec-02 18:37
king_of_the_world19-Dec-02 18:37 
GeneralRe: detect mouse click Pin
Taka Muraoka19-Dec-02 18:51
Taka Muraoka19-Dec-02 18:51 
GeneralRe: detect mouse click Pin
king_of_the_world19-Dec-02 19:08
king_of_the_world19-Dec-02 19:08 
GeneralRe: detect mouse click Pin
Taka Muraoka19-Dec-02 19:12
Taka Muraoka19-Dec-02 19:12 
GeneralRe: detect mouse click Pin
king_of_the_world20-Dec-02 1:15
king_of_the_world20-Dec-02 1:15 
GeneralRe: detect mouse click Pin
Taka Muraoka20-Dec-02 1:28
Taka Muraoka20-Dec-02 1:28 
I was actually playing with this stuff the other day and couldn't get it work like this either Smile | :) I had to pass in the current thread ID when setting the hook i.e. call GetCurrentThreadId(). So it should work OK as long as everything is in the one thread, which it is for me. If you really want a global hook or for this work for multiple threads, you're on your own!

BTW, I wouldn't call MessageBox() inside your hook procedure. This function is going to get called a *lot*, from deep inside Windows, and it's probably not going to like you trying to display a dialog box. Log it to a file instead,



he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)

Awasu v0.4a[^]: A free RSS reader with support for Code Project.

GeneralRe: detect mouse click Pin
king_of_the_world20-Dec-02 1:38
king_of_the_world20-Dec-02 1:38 
GeneralRe: detect mouse click Pin
king_of_the_world20-Dec-02 1:40
king_of_the_world20-Dec-02 1:40 
GeneralRe: detect mouse click Pin
Taka Muraoka20-Dec-02 1:50
Taka Muraoka20-Dec-02 1:50 
GeneralRe: detect mouse click Pin
king_of_the_world20-Dec-02 1:55
king_of_the_world20-Dec-02 1:55 
GeneralRe: detect mouse click Pin
Taka Muraoka20-Dec-02 2:08
Taka Muraoka20-Dec-02 2:08 
GeneralRe: detect mouse click Pin
king_of_the_world20-Dec-02 2:14
king_of_the_world20-Dec-02 2:14 
GeneralRe: detect mouse click Pin
Christian Graus19-Dec-02 18:52
protectorChristian Graus19-Dec-02 18:52 
GeneralComboBox Pin
Exceter19-Dec-02 17:28
Exceter19-Dec-02 17:28 
GeneralRe: ComboBox Pin
KaЯl19-Dec-02 23:37
KaЯl19-Dec-02 23:37 
GeneralNeed help using SafeArray/VARIANT from ASP/VBScript client Pin
bahruddina19-Dec-02 16:22
bahruddina19-Dec-02 16:22 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Jeff J19-Dec-02 21:56
Jeff J19-Dec-02 21:56 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Anonymous20-Dec-02 3:41
Anonymous20-Dec-02 3:41 
GeneralRe: Need help using SafeArray/VARIANT from ASP/VBScript client Pin
Jeff J20-Dec-02 10:55
Jeff J20-Dec-02 10:55 
GeneralNeed Suggestion on "Timing Out" GetDiskFreeSpaceEx Pin
wdafon19-Dec-02 16:07
wdafon19-Dec-02 16:07 
Generalwindows 2000 power management Pin
dejavu19-Dec-02 15:48
dejavu19-Dec-02 15:48 
GeneralRe: windows 2000 power management Pin
roboo19-Dec-02 18:14
roboo19-Dec-02 18:14 
QuestionDynamic Object Creation, ok. What about destruction? Pin
Mr.Freeze19-Dec-02 15:00
Mr.Freeze19-Dec-02 15:00 

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.