Multiple Language Support In The Classpad - Casio ClassPad 300 Programming Manual

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

Advertisement

There is only one function available to convert a string to an OBCD:
int ExecuteToOBCD(const PEGCHAR *str, OBCD &obcd, BOOL bErrCheck=TRUE);
While the function does not take a CPString as an argument, you can send the buffer of a
CPString like this:
CPString str = "123.32";
ExecuteToOBCD(str.GetBuffer(), x, FALSE);

Multiple Language Support in the ClassPad

The ClassPad provides a method to easily allow you to create an add-in application with
support for multiple languages. You might have noticed that in every ClassPad add-in
that is created, the function
char *ExtensionGetLang(ID_MESSAGE MessageNo)
must be defined to at least return "". When properly used, this function will take in a
message number of a displayed string and output the correct text for the current language.
To work correctly, there is a little setup work that must be done, but once you understand
the steps it is very easy to use.
To go step by step through creating an add-in with multiple language support we will
refer to the Hello World example add-in that came with the ClassPad 300 SDK. The add-
in is located in Documents\ClassPad 300 SDK \Examples\HelloWorld\. First, let's run
the program and see how the text on the ClassPad changes depending on what language
you are using.
Here you see the same screen in English, Spanish and French. You'll also notice that
there are two different text strings on the screen: "Hello" and "Hello World".
105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents