Click here to Skip to main content
15,899,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: listView - is there a bug? Pin
Andy H13-Feb-04 23:37
Andy H13-Feb-04 23:37 
QuestionlistView - is there a bug? Pin
Andy H12-Feb-04 23:48
Andy H12-Feb-04 23:48 
GeneralConvert String[] to System.Array Pin
RickardB12-Feb-04 20:11
RickardB12-Feb-04 20:11 
GeneralRe: Convert String[] to System.Array Pin
Mazdak12-Feb-04 20:38
Mazdak12-Feb-04 20:38 
GeneralRe: Convert String[] to System.Array Pin
Ungi.1-Mar-04 20:54
Ungi.1-Mar-04 20:54 
GeneralOpen DAO Recordset Pin
Daminda12-Feb-04 19:58
Daminda12-Feb-04 19:58 
GeneralRe: Open DAO Recordset Pin
Heath Stewart13-Feb-04 3:45
protectorHeath Stewart13-Feb-04 3:45 
GeneralHelp me finish this solution Pin
Anonymous12-Feb-04 19:30
Anonymous12-Feb-04 19:30 
If taken a deep look into this hooking article: http://www.codeproject.com/csharp/NetWin32Hooks.asp?target=hook[^]. I had a problem with creating a global hook. The problem with creating a global hook, as some of you might know, is that the hook proc must reside in a seperate library so that it can be loading into all the running processes on the system. The author of the article above has testing just that with a .NET library and claims that it just doesn't work. I came up with a solution that I'm very close to finishing.

Basically I created a C++ library that implements all the hooking and exposes the functions so I can call them. For the .NET application to be able to get the events I resend them to the HWND that is passes when the hook is first installed. I can get the hook to work without a hitch if I call it from another C++ test application. However when I use P/Invoke to call the install function the hook isn't installed globally like expected but only hooks messages in the current thread. (In the C++ test application the hook works globally without a hitch) What am I doing wrong in this case? What is the right way to call the install function? If I can't get this to work I'll have to fall back to creating a C++ exe that will install the hook and initialize the HWND to resend events to.
GeneralRe: Help me finish this solution Pin
Heath Stewart13-Feb-04 3:42
protectorHeath Stewart13-Feb-04 3:42 
GeneralUsing Interfaces Practically Pin
Anonymous12-Feb-04 19:20
Anonymous12-Feb-04 19:20 
GeneralRe: Using Interfaces Practically Pin
Mazdak12-Feb-04 19:27
Mazdak12-Feb-04 19:27 
GeneralRe: Using Interfaces Practically Pin
Anonymous13-Feb-04 15:56
Anonymous13-Feb-04 15:56 
GeneralRe: Using Interfaces Practically Pin
Nick Seng12-Feb-04 21:44
Nick Seng12-Feb-04 21:44 
GeneralRe: Using Interfaces Practically Pin
Brian Delahunty13-Feb-04 0:48
Brian Delahunty13-Feb-04 0:48 
GeneralRe: Using Interfaces Practically Pin
Jonathan de Halleux13-Feb-04 2:39
Jonathan de Halleux13-Feb-04 2:39 
GeneralRe: Using Interfaces Practically Pin
paw197213-Feb-04 5:33
paw197213-Feb-04 5:33 
GeneralMaking Variables In C# Global Pin
Eric Houser12-Feb-04 18:44
Eric Houser12-Feb-04 18:44 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 18:49
John Kuhn12-Feb-04 18:49 
GeneralRe: Making Variables In C# Global Pin
Eric Houser12-Feb-04 18:54
Eric Houser12-Feb-04 18:54 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 19:07
John Kuhn12-Feb-04 19:07 
GeneralRe: Making Variables In C# Global Pin
John Kuhn12-Feb-04 18:52
John Kuhn12-Feb-04 18:52 
GeneralRe: Making Variables In C# Global Pin
Meysam Mahfouzi12-Feb-04 18:59
Meysam Mahfouzi12-Feb-04 18:59 
GeneralRe: Making Variables In C# Global Pin
Eric Houser12-Feb-04 19:07
Eric Houser12-Feb-04 19:07 
GeneralArabic to roman Pin
GetOn&GetGoing12-Feb-04 18:30
GetOn&GetGoing12-Feb-04 18:30 
GeneralRe: Arabic to roman Pin
John Kuhn12-Feb-04 18:46
John Kuhn12-Feb-04 18:46 

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.