Application Function DLL
This implementation template shows how a Toolkit function can be defined in C code and called from an EML.
(C source code)
(Visual C++ Project)(Windows Only)
The appFuncTemplate example is intended to provide users with a simple but extensible template necessary to create an ApplicationFunctionDLL under IMAGINE. The ApplicationFunctions DLL Class, derived from the DLLs DLL Class, provides a means of defining functions callable from within EML scripts on a session-wide basis. IMAGINE contains a well-defined DLL architecture that can be used by developers to extend the IMAGINE suite of applications. This example defines the necessary structure for a DLL to be registered and loaded in an IMAGINE session. The structure is quite straightforward and only slight modifications are necessary to create new multi-function Application Function DLLs.
The ApplicationFunctions DLL Class allows functions to be introduced to an IMAGINE installation that are available session-wide. These functions can be called from any EML script, regardless of the application that is used to parse that EML script.
An Application Function DLL is a library of functions that can be called via any EML on any system that includes that particular DLL. These functions usually return values to the EML from which it was called. The usefulness of these DLLs should not be overlooked.
Application Function Arguments
Refer to the Functions section of the EML Reference Manual for a description of calling functions from within an EML script.
Application Functions can return values to an EML interface via an estr_StringList.
ApplicationFunctionDLL Application functions work well with general purpose and near instantaneous processes.