首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 406 毫秒
1.
本文详细介绍了利用VisualBasic的可扩生实现串行通讯最主要的两种方法,即使用VisualBasic的控件和调用WindowsAPI函数方法。  相似文献   

2.
本文详细介绍了利用VisualBasic的可扩展性实现串行通讯最主要的两种即使的控件和调用WindowsAPI函数方法。  相似文献   

3.
介绍在VisualBasic中用WindowsAPI调色板函数实现逻辑调色板的方法,并以实现256色黑白灰阶调色板为例,给出全部程序清单。  相似文献   

4.
在利用VisualBasic开发的多媒体应用程序中,可方便地调用WindowsAPI的高级小函数来播放声音。  相似文献   

5.
Visual C++在异步串行通信控制中的应用   总被引:7,自引:0,他引:7  
系统介绍了VisualC+ +实现异步串行通信的基本原理, 分别讲述了用Windows 函数库API函数实现和C运行时库的实现方法, 以及在控制系统中的编程应用实例  相似文献   

6.
本文主要介绍在 VisualJ++6.0开发平台中,利用 Java语言和 WFC类库开发 Windows应用程序及 Web应用时,内嵌调用本地Windows系统的Win32API函数的技术机制、编程要点并给出应用示例。关键词:Java语言 J/Direct Call Builder Win32 API函数技术研讨  相似文献   

7.
VisualC++在异步串行通信控制中的应用   总被引:2,自引:0,他引:2  
系统介绍了VisualC++实现异步串行通信的基本原理,分别讲述了用Windows函数库API函数实现和C运行时库的实现方法,以及在控制系统中的编程应用实例。  相似文献   

8.
在多媒体应用中,播放声音是常见的功能之一。由于Vis-ualBasic本身没有直接支持播放声音的语句,所以当希望在应用程序中播放声音时,首先可借助功能强大的WindowsAPI(Application ProgramInterface)函数;同时还可以使用系统自带的媒体播放机程序,并利用OLE控件把媒体播放器集成到自己的应用程序中,同样可以实现对声音的播放;另一种实现声音效果的方法,便是利用多媒体MCI控件。1利用WindowsAPI函数播放声音WindowsAPI函数有上千个,播放声音可使用s…  相似文献   

9.
VB对Windows98注册表编程的例程   总被引:1,自引:0,他引:1  
Windows具有惊人的记忆力 ,要归功于它的注册表 ,可以说注册表是Windows的灵魂。注册表是一个集中管理的数据库 ,它包含有关计算机的配件和软件的各类信息 ,在“引导”、“系统初始化”、“登录”、“执行程序”等许多进程中被用到。VisualBasic调用API函数可以对注册表进行控制 ,是比较典型的控制系统内部信息的编程。我们经常发布试用程序来宣传自己的软件产品 ,这种产品则需要限制用户的使用次数 ,本文通过用VisualBasic编写这段限次例程来介绍有关注册表的API函数。为了对注册表有个直观的了…  相似文献   

10.
详细介绍了消息传送应用编程接口(MAPI)体系结构,探讨了MAPI客户端编程,最后结合一个实际开发例子介绍用VisualC++在MFC和API两个层次上实现MAPI的方法。  相似文献   

11.
API (application programming interface) documentation is critical for developers to learn APIs. However, it is unclear whether API documentation indeed improves the API learnability for developers. In this paper, we focus on two types of API documentation, i.e., official API tutorials and API crowd documentation. First, we analyze API coverage and check API consistencies in API documentation based on the API traceability. Then, we conduct a survey and extract several characteristics to analyze which API documentation can help developers learn APIs. Our findings show that: 1) API crowd documentation can be regarded as a supplement to the official API tutorials to some extent;2) the concerns for frequently-used APIs between different types of API documentation show a huge mismatch, which may prevent developers from deeply understanding the usages of APIs through only one type of API documentation;3) official API tutorials can help developers seek API information on a long page and API crowd documentation could provide long codes for a particular programming task. These findings may help developers select the suitable API documentation and find the useful information they need.  相似文献   

12.
李正  吴敬征  李明树 《软件学报》2018,29(6):1716-1738
API(Application Programming Interface,应用程序编程接口)在现代软件开发过程中被广泛使用.开发人员通过调用API快速构建项目,节省了大量的时间.但由于API数量众多、文档不够完善、维护更新不及时等原因,使开发人员在学习使用API的过程中面临着严峻的挑战.同时,一旦API使用不正确,程序可能会出现缺陷甚至严重的安全问题.本文通过对API相关文献的深入调研,对近些年来国内外学者在该研究领域取得的成果进行了系统总结.首先,介绍了API的基本概念并分析出影响API使用的三个关键问题:API文档质量不高,调用规约不完整以及API调用序列难以确定;接着,从API文档、调用规约和API推荐三个主要方面对研究成果进行全面的分析;最后,对未来研究可能面临的挑战进行了展望.  相似文献   

13.
An Application Programming Interface (API) provides a programmatic interface to a software component that is often offered publicly and may be used by programmers who are not the API’s original designers. APIs play a key role in software reuse. By reusing high quality components and services, developers can increase their productivity and avoid costly defects. The usability of an API is a qualitative characteristic that evaluates how easy it is to use an API. Recent years have seen a considerable increase in research efforts aiming at evaluating the usability of APIs. An API usability evaluation can identify problem areas and provide recommendations for improving the API. In this systematic mapping study, we focus on 47 primary studies to identify the aim and the method of the API usability studies. We investigate which API usability factors are evaluated, at which phases of API development is the usability of API evaluated and what are the current limitations and open issues in API usability evaluation. We believe that the results of this literature review would be useful for both researchers and industry practitioners interested in investigating the usability of API and new API usability evaluation methods.  相似文献   

14.
汪昕  陈驰  赵逸凡  彭鑫  赵文耘 《软件学报》2019,30(5):1342-1358
开发人员经常需要使用各种应用程序编程接口(application programming interface,简称API)来复用已有的软件框架、类库等.由于API自身的复杂性、文档资料的缺失等原因,开发人员经常会误用API,从而导致代码缺陷.为了自动检测API误用缺陷,需要获得API使用规约,并根据规约对API使用代码进行检测.然而,可用于自动检测的API规约难以获得,而人工编写并维护的代价又很高.针对以上问题,将深度学习中的循环神经网络模型应用于API使用规约的学习及API误用缺陷的检测.在大量的开源Java代码基础上,通过静态分析构造API使用规约训练样本,同时利用这些训练样本搭建循环神经网络学习API使用规约.在此基础上,针对API使用代码进行基于上下文的语句预测,并通过预测结果与实际代码的比较发现潜在的API误用缺陷.对所提出的方法进行实现并针对Java加密相关的API及其使用代码进行了实验评估,结果表明,该方法能够在一定程度上实现API误用缺陷的自动发现.  相似文献   

15.
基于XML的API自动化测试工具设计与实现   总被引:5,自引:0,他引:5       下载免费PDF全文
在研究应用编程接口(API)测试特点的基础上,运用软件测试技术与方法对API进行了正确性测试,设计了API自动化测试框架,采用XML语言进行API自动化测试工具的设计和实现方案。使用该工具可在API信息提取、测试用例生成及测试用例执行、测试报告生成等方面实现自动化。该工具主要用于验证第三方提供的API,由于单元测试中较多地使用了API测试,因此也可运用于软件的单元测试。  相似文献   

16.
周芯宇  陈伟  吴国全  魏峻 《软件学报》2022,33(9):3271-3296
REST API已成为访问和使用Web服务的重要途径, 为开发基于服务架构的应用系统提供了可复用接口. 但是, REST API的设计质量参差不齐, 因此有效、合理的设计指导规范对于规范和提高REST API设计质量具有现实意义和应用价值. 首先, 基于REST API的本质内涵, 建立了一个多维度、两层次的REST API设计指导规范分类体系RADRC (REST API design rule catalog), 并对当前主流的25条设计指导规范进行分类. 其次, 针对已有规范提出相应的检测方法, 并实现了REST API设计指导规范遵循情况的分析与检测工具RESTer. 最后, 使用RESTer开展REST API设计实证研究, 分析了APIs.guru收录的近2000个真实REST API的文档, 从中分析提取相应的REST API信息, 进一步检测并统计当前REST API的设计特征和设计指导规范遵循情况. 研究发现不同应用类别的REST API在资源和操作模式上存在差异, 使得不同类别REST API在设计规则和总体架构方面各有特点. 实证研究结果有助于深入了解当前REST API及其设计规则的特征、现状和不足, 对于提高REST API设计质量和改进设计指导规范具有实际意义.  相似文献   

17.
在大规模分布式入侵检测系统中,为了实现安全部件之间的互动而设计了一套统一的API。首先对API应用系统的基本结构进行了分析,然后描述了基于API的安全部件间的互动过程,最后对此API进行了详细的说明。  相似文献   

18.
Application Programming Interfaces (API) are exposed to developers in order to reuse software libraries. API directives are natural-language statements in API documentation that make developers aware of constraints and guidelines related to the usage of an API. This paper presents the design and the results of an empirical study on the directives of API documentation of object-oriented libraries. Its main contribution is to propose and extensively discuss a taxonomy of 23 kinds of API directives.  相似文献   

19.
基于Goolge Maps API的WebGIS应用研究   总被引:2,自引:0,他引:2  
Google Maps API是Google公司开发的在网络上进行地图发布的免费API函数集。介绍了其特点、功能、基于Goolge Maps API的WebGIS开发方法,并给出了开发实例。研究表明:基于Google Maps API可以方便地在网页中嵌入地图,它的数据的分辨率高,用户可以根据需要进行功能扩展,借助Google Maps API可以真正实现WebGIS的大众化应用。  相似文献   

20.
Application programming interface (API) libraries are extensively used by developers. To correctly program with APIs and avoid bugs, developers shall pay attention to API directives, which illustrate the constraints of APIs. Unfortunately, API directives usually have diverse morphologies, making it time-consuming and error-prone for developers to discover all the relevant API directives. In this paper, we propose an approach leveraging text classification to discover API directives from API specifications. Specifically, given a set of training sentences in API specifications, our approach first characterizes each sentence by three groups of features. Then, to deal with the unequal distribution between API directives and non-directives, our approach employs an under-sampling strategy to split the imbalanced training set into several subsets and trains several classifiers. Given a new sentence in an API specification, our approach synthesizes the trained classifiers to predict whether it is an API directive. We have evaluated our approach over a publicly available annotated API directive corpus. The experimental results reveal that our approach achieves an F-measure value of up to 82.08%. In addition, our approach statistically outperforms the state-of-the-art approach by up to 29.67%in terms of F-measure.  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号