Re: Windows message -> .NET method
From: Edward Diener (eddielee_at_tropicsoft.com)
Date: 10/26/04
- Next message: The unProfessional: "Managed Reference Types"
- Previous message: Eric Twietmeyer: "WaitHandle.WaitAll"
- In reply to: Joshua Frank: "Re: Windows message -> .NET method"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 14:36:11 -0400
Joshua Frank wrote:
> Better still would be a Win32 namespace that actually encapsulated the
> whole API in a managed way.
I do not know if it would be better, since I still would not get the benefit
of knowing how Windows messages translate into .NET events. It would be
helpful so that one would not have to #include <windows.h> in VC++, use IJW,
and create mixed mode assemblies that way with their current destructive
bugginess, and of course it would be better for all languages not to have to
use InterOp just to drop to the Windows API level. But if MS documented the
messages -> .NET events better, I might not have to ever go the Win32 API
route anymore in the first place.
>
> Edward Diener wrote:
>
>> Microsoft has put out a document relating Win32 API calls to .NET
>> methods
>>
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/h
>> tml/win32map.asp ) . An equally valuable document, esspecially from
>> the component developer point of view, would map Windows messages to
>> .NET methods.
>>
>> Has anyone seen such a document ?
>>
>> I find myself pretty consistently looking at Win32 code which does a
>> SendMessage or PostMessage and searching for the .NET method which is
>> equivalent. Sometimes I find a method which looks like it will do
>> what I want, but the MSDN .NET framework documentation is often not
>> clear enough to tell me if it is so. Of course I can experiment, but
>> I hate top spend time playing arouind when a good document would
>> already tell me.
>>
>> Am I the only .NET developer who feels a need for such a document
>> from Microsoft to aid in porting Win32 functionality to .NET ?
- Next message: The unProfessional: "Managed Reference Types"
- Previous message: Eric Twietmeyer: "WaitHandle.WaitAll"
- In reply to: Joshua Frank: "Re: Windows message -> .NET method"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|