文献翻译c和net框架计算机专业中英文内容摘要:

deallocating memory and hunting for memory leaks. This is no small feature, since hunting for memory leaks can be difficult and timeconsuming. Interoperability The .NET Framework was designed for interoperability between different .NET languages, the operating system or Win32 DLLs, and COM.  .NET language interoperability allows software modules written using different .NET languages to interact seamlessly. – A program written in one .NET language can use and even inherit from a class written in another .NET language, as long as certain rules are followed. – Because of its ability to easily integrate modules produced in different programming languages, the .NET Framework is sometimes described as language agnostic.  .NET provides a feature called platform invoke (P/Invoke), which allows code written to call and use code not written for .NET but exported as raw C functions by standard Win32 DLLs, such as the Windows APIs.  The .NET Framework also allows interoperability with COM. .NET software ponents can call COM ponents and COM ponents can call .NET ponents as if they were COM ponents themselves. No COM Required The .NET Framework frees the programmer from the COM legacy. As a C programmer, you do not need to use COM, and therefore do not need any of the following:  The IUnknowninterface: In COM, all objects must implement interface IUnknown. In contrast, all .NET objects derive from a single class called object. Interface programming is still an important part of .NET, but it is no longer the central theme.  Type libraries: In COM, type information is kept in type libraries as .tlb files, which areseparate from the executable code. In .NET, a program’s type information is kept together with the code in the program file.  Reference counting: In COM, the programmer must keep track of the number of references to an object to make sure it is not deleted at the wrong time. In .NET, the GC keeps track of references and deletes objects only when appropriate.  HRESULT: COM uses the HRESULT data type to return runtime error codes. .NET does not use HRESULTs. Instead, all unexpected runtime errors produce exceptions.  The registry: COM applications must be registered in the system registry, which holds information about the configurations of the operating system and applications. .NET applic。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。