Starting with the .NET Compact Framework version 2.0, you can perform direct COM interop, use the MarshalAsAttribute class, and marshal a larger set of types.
- Exposing COM to .NET Compact Framework Components
Describes how to provide unmanaged code access to managed components.
- Exposing .NET Compact Framework Components to COM
Describes how to provide managed code access to COM components.
- Platform Invoke Support
Discusses differences in the .NET Compact Framework for using platform invoke to call a native component such as a DLL file.
- Marshaling Support in the .NET Compact Framework
Discusses differences in the .NET Compact Framework for marshaling data types between managed and unmanaged code. Also describes how to set a registry key to perform interop logging.
- Subclassing Controls with a Managed Window Procedure
Describes advanced programming techniques for interoperating with native controls.
- How to: Subclass a TreeView by Using Native Callbacks
Describes how to subclass the TreeView control to create an implementation of the NodeMouseClick event.
- How to: Subclass a Button by Using Native Callbacks
Describes how to subclass the Button control to display a colorful gradient fill.
- How to: Use a Class for Hooking Windows Procedures
Provides a class for implementing managed window procedures, as described in How to: Subclass a TreeView by Using Native Callbacks.
- How to: Use a Helper Class for Platform Invokes
Provides helper functions for subclassing controls, as described in How to: Subclass a TreeView by Using Native Callbacks.
- How to: Use the MessageWindow Class
Describes how to use the MessageWindow and Message classes in the Microsoft.WindowsCE.Forms namespace. The example in this topic does not require a native component.
- Interoperability
Describes interoperability services in the full .NET Framework.