LoadSharedLibrary (Method)

Applies To:

Application

Description:

Initializes the communication between Interactive Reporting Studio and an external shared library (.DLL). It also returns a SharedLibrary object that can invoke functions of the shared library.

Note:

The Application.LoadSharedLibrary() object model syntax is not supported in an Interactive Reporting document file deployed in the EPM Workspace.

Syntax:

Expression.LoadSharedLibrary(Name As String) As SharedLibrary

Expression Required:

An expression that returns an Application object

Example:

This example calls the Beep function of the Kernal32.dll for 4 seconds with 5000Hz:

var oLibrary;
oLibrary = LoadSharedLibrary("kernel32.dll");
oLibrary.Call("Beep", "UI,UI", 5000, 4000);