
|
TibKey 1.0
Technical note:
Some people have asked how to use Tibkey in
Database applications etc.
All the work in Tibkey is really done by routines
in the .dll KB_TIB.DLL, so the Tibetan keyboard can
easily be invoked by any application which can call a
Windows .dll.
The function prototypes for the DLL are:
* <kb_tib.h>
** function prototypes for <kb_tib.c>
**
** these are all user-callable functions:
** TibKybd installs/removes the hooks and their subsidiary
** functions that perform the keyboard translations
** for the Tibetan language
**
** GetVer returns an integer version number for these routines
**
** GetID copies an ID string into a user supplied buffer
** the string contains the module name, version
** number and build date; it should be 50 chars or so
** in length and be an LPSTR
*/
// keyboard translation toggle
extern "C" BOOL __export FAR PASCAL TibKybd (BOOL, HTASK);
// version number function
extern "C" int __export FAR PASCAL GetVer (void);
// id function
extern "C" void __export FAR PASCAL GetID (LPSTR);
// eof
For example, you can make a function to toggle the
Tibetan Keyboard on/off from a 16-bit Visual Basic
application as follows:
' declarations:
Global hTask As Integer ' hTask
Global gTibOn As Integer ' Tibetan keyboard on/off flag
' hTask
Declare Function GetCurrentTask Lib "Kernel" () As Integer
' Tibetan keyboard translation routine:
Declare Function TibKybd Lib "kb_tib.dll"
Sub ToggleTibetan (OffOn as integer)
dim useless as integer
useless = TibKybd(OffOn, hTask)
gTibOn = Stat
End Sub
- Chris Fynn
chris_fynn@hotmail.com
Home |
Software links |
TibKey 1.0 |
Top of Page
|