Using PI API with Visual Basic 6.0

osi.jpg

The PI API provides a common programmer interface to PI System information.

The API is two files: PIAPI32.DLL & PILOG32.DLL which are the foundation of PI networking and data functionality
PIAPI32.dll – contains all of the “C” language functions necessary for any of the PI clients (including PI ProcessBook & PI DataLink) or any of PI’s high speed interfaces to interact with PI: reading and writing data, buffering system, informational functions, etc.
PILOG32.dll – contains all of the “C” language functions necessary to connect to PI servers, logon with security, and create and interpret data packets.

Read the rest of this entry »

Office VBA 和 Windows API

我们都知道,Visual Basic® for Applications (VBA) 是一种功能强大的编程语言,可用来开发自定义 Microsoft Office 解决方案。将 VBA 和一个或多个 Office 应用程序对象模块配合使用,您可以轻松地修改 Office 应用程序的功能,或者使两个或多个应用程序协同工作,从而完成单个应用程序无法完成的任务。VBA 只能控制操作系统的一小部分,即直接向 VBA 公开的那些函数和对象。Windows® 应用程序编程接口 (API) 提供了众多函数,可让您深入控制操作系统的绝大部分内容。您可以从 VBA 中调用 Windows API 函数,扩展和优化自定义 Office 解决方案。
在这个月的专栏中,我将为您简单介绍如何在 VBA 中使用 Windows API,并提供一些有用的示例。您可以复制这些示例,在自己的自定义解决方案中直接使用它们。
Read the rest of this entry »