Making Views Applications Scriptable

To use Script in a Views application, you have to make this application scriptable. The interpreter of Script for Views is implemented as C++ libraries. Therefore, if you want to use a Views application with Script for Views, you have to:

Note

You can also generate Views scriptable applications from the extension of Views Studio that lets you write Views applications in Script. For more information, refer to the Views Studio User’s Manual.

Including the Header File

Include the following header file in the main source file of your application:

#include <ilviews/jvscript/script.h>

You need to include this file only once. You do not have to include it in each one of the source files of your application.

Linking with Script for Views Libraries

In addition to the Views libraries, you must link your application with the following Script for Views libraries:

On Microsoft Windows

  • ilvjs.lib

  • iljs.lib

  • iljsgide.lib

On UNIX

  • libilvjs

  • libiljs

  • libiljsgide