Chapter 17. Interoperability

Team-Fly    

 
Application Development Using Visual Basic and .NET
By Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Table of Contents
Part 6.  .NET Applications


Microsoft .NET is a powerful platform, and there are many advantages in writing a new application within the .NET Framework. However, a typical application is not a world unto itself, but is built from legacy components as well as new components , and so issues of interoperability are very important. We discussed one kind of interoperability in Chapter 15 in connection with Web services. Using the SOAP protocol, it is possible for .NET applications to call Web services on other platforms, including Unix and mainframes. It is also possible for applications on diverse platforms, including mobile ones, to call .NET Web services running on Microsoft Windows.

In this chapter we will look at another kind of interoperability, the interfacing of managed and unmanaged code running under Windows. The dominant programming model in modern Windows systems is the Component Object Model, or COM. There exist a great many legacy COM components, and so it is desirable for a .NET program, running as managed code, to be able to call unmanaged COM components. The converse situation, in which a COM client needs to call a .NET server, can also arise. Apart from COM, we may also have need for a .NET program to call any unmanaged code that is exposed as a DLL, including the Win32 API. The .NET Framework supports all these interoperability scenarios through COM interoperability and the Platform Invocation Services, or PInvoke.


Team-Fly    
Top
 


Application Development Using Visual BasicR and .NET
Application Development Using Visual BasicR and .NET
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 190

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