Windows message -> .NET method

E

Edward Diener

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 ?
 
J

Joshua Frank

Better still would be a Win32 namespace that actually encapsulated the
whole API in a managed way.
 
J

Jeff Gaines

Better still would be a Win32 namespace that actually encapsulated
the whole API in a managed way.

Yes, yes yes!!!

I guess the chances are between zero and none :)
 
E

Edward Diener

Joshua said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top