Accessing A Library; Frame Description Language - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Chapter 7: Flash Application Layout
7.3.3.2.

Accessing a Library

HANDLE EV_getAppID(UCHAR const * appname )
Get the ID of an application/shared-code library. appname is the app's internal
name.
Once you have obtained the ID of an application, you can use the function call
macros created by the FDL compiler to call routines in the app's library.
#include "tiams.h"
#include "fileio.h"
HANDLE libid;
.
.
.
libid = EV_getAppID((UCHAR *)"TIPLAYER");
if (libid == H_NULL)
{
/* Could not find library */
}
.
.
.
n = *GetPlayerFileTableCount(libid);
fd = PlayerFileOpen(libid, "script");
Get a handle to the shared-code library.
EV_getAppID returns H_NULL if the requested library cannot be found, i.e., is not installed in
the calculator.
Macros defined in fileio.h can be used to access variables and call functions in the library.
7.3.3.3.

Frame Description Language

Frame Description Language is provided as a tool to simplify the process of
creating an interface to object frame variables and methods. FDL accepts an
input file of statements in the following forms:
var
appvar [ slot-number ] var-name : type ;
func [ slot-number ] func-name (pFrame [, type . . . ]) : type ;
appfunc [ slot-number ] func-name (AppID [, type . . . ]) : type ;
Comments begin with the pound sign (#) and extend to end of line.
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
53
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents