Interacting With Mcs Via Bios Functions; Creating/Deleting Variables And Folders - Casio ClassPad 300 Programming Manual

Sdk programming guide
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

typedef struct
NAMEBUFFER
{
CP_CHAR cpcName[8];
}NAMEBUFFER;
The variables are stored in structures that are defined as:
typedef struct
_VARIABLEMANAGEMENTSTRUCT{
NAMEBUFFER
naName;
DWORD
dwOffsetAdr;
DWORD
dwDataSize;
UCHAR
ucType;
UCHAR
ucFlag;
UCHAR
ucReserve;
UCHAR
ucFolderNo;
}VALMANSTRUCT;
For the most part, you do not need to concern yourself with the internals of MCS or the
specifics of these structures. Most of the time you will interact with MCS via the
functions that are contained in MCSBiosO.h or the CPFile classes, and never modify a
variable or a folder struct directly.

Interacting with MCS via BIOS Functions

The file MCSBiosO.h contains several functions that allow you to interact with MCS in
your add-in. In this section we will go through most of the functions in MCSBiosO.h and
provide examples on how to use them.

Creating/Deleting Variables and Folders

Before we begin using the BIOS functions to create a variable, let's see how it is done in
Main on the ClassPad. On the ClassPad, start up main and type in
ClassPad Menu->Settings->Variable Manager. The variable manager will open and you
will see that the main folder has one variable in it. Double click on that folder and you
will find your variable x with a value of 5.
// Folder and Variable Name Buffer
// Variable Name
// Variable offest
// Variable data size
// Data Type
// Reserved
// Folder Management Area
. Then click on the
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents