Texas Instruments TI89 Developer Guide - Page 95
Accessing a Library, Frame Description Language, appname, slot-number, var-name, func-name
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 95 highlights
Chapter 7: Flash Application Layout 53 7.3.3.2. 7.3.3.3. 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. 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: apvpavrar [ 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 Beta Version January 26, 2001