Starting with the .NET Compact Framework version 2.0, you can perform direct COM interop, use the MarshalAsAttribute, and have an increased set of types you can marshal.
In This Section
- Exposing COM to .NET Compact Framework Components
Describes providing unmanaged code access to managed components.
- Exposing .NET Compact Framework Components to COM
Describes providing 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
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: 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: Subclass a TreeView by Using Native Callbacks
Describes subclassing the TreeView control to create an implementation of the NodeMouseClick event.
- How to: Subclass a Button by Using Native Callbacks
Describes subclassing the Button control to display a colorful gradient fill.
- How to: Use a Helper Class for Platform Invokes
Provides helper functions used for subclassing controls as described in in How to: Subclass a TreeView by Using Native Callbacks.
- How to: Use the MessageWindow Class
Describes how to use the MessageWindow and Message class in the Microsoft.WindowsCE.Forms namespace. This example does not require a native component.
Related Sections
- Interoperability
Describes interoperability services in the full .NET Framework.