Click here to Skip to main content
16,005,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSave to a file Pin
thaiguy_md16-Jun-10 12:58
thaiguy_md16-Jun-10 12:58 
AnswerRe: Save to a file Pin
Rick York16-Jun-10 16:37
mveRick York16-Jun-10 16:37 
GeneralRe: Save to a file Pin
ThatsAlok16-Jun-10 23:55
ThatsAlok16-Jun-10 23:55 
QuestionSetWindowsHookEx and Callback Pin
AlmightyEdge16-Jun-10 10:26
AlmightyEdge16-Jun-10 10:26 
AnswerRe: SetWindowsHookEx and Callback [modified] Pin
Hristo-Bojilov16-Jun-10 11:14
Hristo-Bojilov16-Jun-10 11:14 
GeneralRe: SetWindowsHookEx and Callback Pin
AlmightyEdge16-Jun-10 12:48
AlmightyEdge16-Jun-10 12:48 
GeneralRe: SetWindowsHookEx and Callback Pin
AlmightyEdge18-Jun-10 2:59
AlmightyEdge18-Jun-10 2:59 
AnswerRe: SetWindowsHookEx and Callback Pin
Stephen Hewitt16-Jun-10 19:19
Stephen Hewitt16-Jun-10 19:19 
This whole area is a tricky subject. For starters the hook procedure for WH_CBT hooks that run in other processes must be in a DLL (which is injected into all the processes being hooked). Since you're trying to call a managed function from this DLL in the context of every hooked process, the managed code must also (somehow) be injected along with the DLL that contains the hook procedure. This could lead to a common problem which can occur when trying to build component systems using .NET: trying to load multiple versions of the CLR into a single process. See In-Process Side-by-Side[^] for details on this.

Perhaps you'd be better using some kind of IPC instead of a direct function call.
 
Steve

GeneralRe: SetWindowsHookEx and Callback Pin
AlmightyEdge18-Jun-10 3:00
AlmightyEdge18-Jun-10 3:00 
GeneralRe: SetWindowsHookEx and Callback Pin
Stephen Hewitt21-Jun-10 15:04
Stephen Hewitt21-Jun-10 15:04 
Questionwrap the wininet dll Pin
alto16-Jun-10 7:41
alto16-Jun-10 7:41 
AnswerRe: wrap the wininet dll Pin
ThatsAlok16-Jun-10 23:57
ThatsAlok16-Jun-10 23:57 
GeneralRe: wrap the wininet dll Pin
Moak17-Jun-10 3:43
Moak17-Jun-10 3:43 
Questionvalid date and time Pin
MKC00216-Jun-10 6:01
MKC00216-Jun-10 6:01 
AnswerRe: valid date and time Pin
CPallini16-Jun-10 6:19
mveCPallini16-Jun-10 6:19 
QuestionFloodFill question Pin
ForNow16-Jun-10 5:04
ForNow16-Jun-10 5:04 
AnswerRe: FloodFill question Pin
Chris Losinger16-Jun-10 5:39
professionalChris Losinger16-Jun-10 5:39 
AnswerRe: FloodFill question Pin
Niklas L16-Jun-10 6:27
Niklas L16-Jun-10 6:27 
Questionbetter linear algebra Pin
VeganFanatic16-Jun-10 5:03
VeganFanatic16-Jun-10 5:03 
QuestionNew In c and c++. Downloading data from a server Pin
Eli Nurman16-Jun-10 4:26
Eli Nurman16-Jun-10 4:26 
AnswerRe: New In c and c++. Downloading data from a server Pin
Maximilien16-Jun-10 4:46
Maximilien16-Jun-10 4:46 
GeneralRe: New In c and c++. Downloading data from a server Pin
Eli Nurman16-Jun-10 6:14
Eli Nurman16-Jun-10 6:14 
GeneralRe: New In c and c++. Downloading data from a server Pin
Maximilien16-Jun-10 6:56
Maximilien16-Jun-10 6:56 
AnswerRe: New In c and c++. Downloading data from a server Pin
David Crow16-Jun-10 5:10
David Crow16-Jun-10 5:10 
AnswerRe: New In c and c++. Downloading data from a server Pin
Aescleal16-Jun-10 7:48
Aescleal16-Jun-10 7:48 

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.