Shared Samples

Try out source code samples stored in Bitbucket repositories.
Showing results for 
Search instead for 
Do you mean 

Application Function DLL appFuncTemplate

by Technical Evangelist on ‎09-10-2015 09:21 AM - edited on ‎03-29-2016 11:20 AM by Anonymous (379 Views)

Example Type

Application Function DLL

 

Purpose

 

This implementation template shows how a Toolkit function can be defined in C code and called from an EML.

 

Files

 

appFuncTemplate.c

 (C source code)

 

appFuncTemplate.dsp

 (Visual C++ Project)(Windows Only)

 

 

Description

 

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.

 

Output

 

Application Functions can return values to an EML interface via an estr_StringList.

 

Notes

 

ApplicationFunctionDLL Application functions work well with general purpose and near instantaneous processes.

 

 

Source Code

 

https://bitbucket.org/HGDN/hgdn_erdas_imagine/src/e1ade3b7d148b0f2f1aa6427044dfa4bce6226ee/Af_appFun...

Overview
Contributors