.NET Interoperability Features and Legacy Code

Existing code that uses ActiveX, COM, or COM+ can be integrated into .NET application development. You can also call to the Windows API (Application Programming Interface) from .NET. The ability to use legacy code from .NET applications may save you considerable time over writing everything from the ground up. The interoperability features of .NET can handle legacy code in many ways:

  • ActiveX ActiveX controls can be placed on Windows forms.

  • COM/COM+ These components can be instantiated and invoked by .NET code.

  • Windows API The Windows API may be invoked using the Platform Invoke capability ( PInvoke ) within .NET applications.

graphics/note_icon.gif

The interoperability of .NET code is two-way. Although this chapter focuses on calling COM components from .NET code, you can also call .NET components from COM code.




Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 188

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net