应用编程接口编程 [英] Application programming interface programming

查看:68
本文介绍了应用编程接口编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到一篇好的文章或教程来理解创建应用程序编程接口的基本概念?

Where can I find a good article or tutorial to understand basic concept to create an Application programming interface?

推荐答案

当我说"API"时;在前一个线程中,我只是指用于执行任务的方法和属性集。在这种情况下,任务正在与特定的exe进行通信。

When I said, "API" in a previous thread, I simply meant the set of methods and properties used to perform a task. In this case, the task was communicating with a particular exe.

想象一下,您正在与之通信的exe是notepad.exe。您的API可能包括Open(filePath),Save()和SaveAs(filePath)等操作。您可能还有MoveToHome(),MoveToEndOfLine(),Select(),DeleteSelected(),
等操作。

Imagine, for the moment, that the exe you were communicating with was notepad.exe. Your API might include operations like Open(filePath), Save(), and SaveAs(filePath). You might also have operations like MoveToHome(), MoveToEndOfLine(), Select(), DeleteSelected(), etc.

如果您正在与之通信的exe是csc.exe (C#编译器),那么你将有一套完全不同的操作。

If the exe you were communicating with was csc.exe (the C# compiler), then you would have a completely different set of operations.

这就是为什么我说没有通用的方法来解决你问的问题 - 每个exe都会是不同的,因此用于与之通信的API会有所不同。

This is why I say there is no general way to solve the problem you asked about - every exe will be different, so the API that would be used to communicate with it would be different.


这篇关于应用编程接口编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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