Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory Problem Pin
Sarath C21-Aug-08 22:29
Sarath C21-Aug-08 22:29 
AnswerRe: Memory Problem Pin
CPallini21-Aug-08 23:06
mveCPallini21-Aug-08 23:06 
GeneralRe: Memory Problem Pin
KarstenK21-Aug-08 23:17
mveKarstenK21-Aug-08 23:17 
GeneralRe: Memory Problem Pin
CPallini21-Aug-08 23:45
mveCPallini21-Aug-08 23:45 
GeneralRe: Memory Problem Pin
Hamid_RT22-Aug-08 0:20
Hamid_RT22-Aug-08 0:20 
GeneralRe: Memory Problem Pin
CPallini22-Aug-08 0:34
mveCPallini22-Aug-08 0:34 
AnswerRe: Memory Problem Pin
Hamid_RT21-Aug-08 23:46
Hamid_RT21-Aug-08 23:46 
Questiona basic and silly question about hooking Pin
Green Fuze21-Aug-08 21:46
Green Fuze21-Aug-08 21:46 
Hey

I'm writing a small global hooking app that will intercept all the WM_COPY messages.
So, I read and found an article about "using hooks" in MSDN:
http://msdn.microsoft.com/en-us/library/ms644960(VS.85).aspx[^] (pretty good article!)

It says in the article:
"You must place a global hook procedure in a DLL separate from the application installing the hook procedure."
That is, in SetWindowsHookEx() I must pass the DLL I loaded and the address of the function.

And I don't really understand why is that.
Why can't I just give a pointer to a function in my application?

I guess that it is because threads from other processes cannot access my application, but they can access a DLL I loaded to the memory from my application.

Can someone take a few minutes to explain the newbie ??? Smile | :)

Thanks a lot in advance!
AnswerRe: a basic and silly question about hooking Pin
Naveen21-Aug-08 22:01
Naveen21-Aug-08 22:01 
GeneralRe: a basic and silly question about hooking Pin
Green Fuze22-Aug-08 3:28
Green Fuze22-Aug-08 3:28 
QuestionHow to convert string to BYTE array? Pin
kapardhi21-Aug-08 21:23
kapardhi21-Aug-08 21:23 
AnswerRe: How to convert string to BYTE array? Pin
SandipG 21-Aug-08 21:29
SandipG 21-Aug-08 21:29 
AnswerRe: How to convert string to BYTE array? Pin
Nibu babu thomas21-Aug-08 21:39
Nibu babu thomas21-Aug-08 21:39 
QuestionRe: How to convert string to BYTE array? Pin
CPallini21-Aug-08 21:45
mveCPallini21-Aug-08 21:45 
AnswerRe: How to convert string to BYTE array? Pin
kapardhi21-Aug-08 21:58
kapardhi21-Aug-08 21:58 
QuestionRe: How to convert string to BYTE array? Pin
CPallini21-Aug-08 22:03
mveCPallini21-Aug-08 22:03 
AnswerRe: How to convert string to BYTE array? Pin
kapardhi21-Aug-08 22:07
kapardhi21-Aug-08 22:07 
GeneralRe: How to convert string to BYTE array? Pin
Nibu babu thomas21-Aug-08 22:57
Nibu babu thomas21-Aug-08 22:57 
GeneralRe: How to convert string to BYTE array? Pin
CPallini21-Aug-08 23:02
mveCPallini21-Aug-08 23:02 
QuestionPlease Guide Connect Sqlserver with VC++6.0. thanks very much Pin
aa_zz21-Aug-08 21:05
aa_zz21-Aug-08 21:05 
AnswerRe: Please Guide Connect Sqlserver with VC++6.0. thanks very much Pin
Hamid_RT21-Aug-08 21:14
Hamid_RT21-Aug-08 21:14 
GeneralRe: Please Guide Connect Sqlserver with VC++6.0. thanks very much Pin
aa_zz21-Aug-08 21:36
aa_zz21-Aug-08 21:36 
GeneralRe: Please Guide Connect Sqlserver with VC++6.0. thanks very much Pin
Hamid_RT21-Aug-08 23:43
Hamid_RT21-Aug-08 23:43 
QuestionHow to create a 'setup' installation CD for a simple win32 C app. Pin
glyfyx21-Aug-08 21:01
glyfyx21-Aug-08 21:01 
AnswerRe: How to create a 'setup' installation CD for a simple win32 C app. Pin
Hamid_RT21-Aug-08 21:17
Hamid_RT21-Aug-08 21:17 

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.