和API和库(.dll)有什么区别 [英] What is the Difference between and API and a Library(.dll)

查看:98
本文介绍了和API和库(.dll)有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何人都可以向我简要介绍一下API和dll之间的区别吗?


问候
Chaithanya M

Hi,
Can anyone please brief me the difference between an API and a dll ?


Regards
Chaithanya M

推荐答案

库是预编译的代码(dll或lib),将包含编码功能类. API是方法和数据的描述(文档或列表).
System.Web包含编译的代码(一个dll),并且是一个库.
A library is pre-compiled code (dll or lib) and will contain classes of coded functionality. An API is a description (documentation or list) of methods and data.
System.Web contains compiled code (a dll) and is a library.


我为您复制并粘贴了您的问题标题在Google中:类似的讨论-1 [ ^ ]
类似的讨论-2 [类似的讨论-3 [ ^ ]
I copied and pasted your question title in Google for you: here[^]

Sample links:
Similar discussion - 1[^]
Similar discussion - 2[^]
Similar discussion - 3[^]


API(应用程序编程接口)是特定库,例程库或操作系统的接口例程的集合.这样,应用程序程序员就可以使用库中的功能,而无需知道他们正在访问的系统的内部结构.

DLL(动态链接库)是一个对象模块,包含一组可能是较大API一部分的相关例程. DLL按需加载到内存中,许多应用程序可以在其中共享其代码.

MSDN 上有关于DLL的大量信息.
An API (Application Programming Interface) is a collection of interface routines to a particular library, collection of libraries or operating system. This allows application programmers to use the functions in the libraries without needing to know the internal structure of the system they are accessing.

A DLL (Dynamic Link Library) is an object module comprising a set of related routines that may be part of a larger API. DLLs are loaded into memory on demand where their code may be shared by many application programs.

There is plenty of information on MSDN about DLLs.


这篇关于和API和库(.dll)有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆