A Typing Program Sample based on TSF (Text Service Framework)

By Y Lam (yick.lam@gmail.com), Hong Kong, China (Last Update: 2007-06-28)

    This tutorial is based on a sample code YLam TSF Example. You enter an email address below to get a link to download it.

Name: Email:

I will first describe what YLam TSF Example does, how to install etc. Later on, I will talk about the code.


What does YLAM TSF Example does? How to install?

YLam TSF Example is a dll written in Microsoft Text Service Framework (TSF) that

The purpose of this example is to show:

However, many of TSF features are not shown, for example:

Please refer to Microsoft's MSDN Example son Text Service Framework. There are 9 such examples and very detailed documentation is given. In fact this example is based on that.

The installation process is first described. The following description is based on Windows Vista (English Version). The process should be similar in other language version of Windows Vista and also Windows XP.

C:\Users\bsiu\Desktop\ylamTSF_Example\ylam_Example\Release
regsvr32 ylam.dll

¡@

¡@

   

¡@

¡@

¡@


How to compile ylamTSF_Example?

¡@

¡@

¡@

¡@

¡@


Some discussion of the source code

class CTextService : public ITfTextInputProcessor,
                     public ITfThreadMgrEventSink,
                     public ITfTextEditSink,
                     public ITfKeyEventSink

                    Other unnecessary classes are not included.

¡@


Reference:

  1. Sample TSF source code from Microsoft: http://msdn2.microsoft.com/en-us/library/ms629032.aspx

  2. http://www.pkucn.com/viewthread.php?tid=189364&extra=page=1 (输¤Jªk编辑¾¹·§­z)

  3. http://www.pkucn.com/viewthread.php?tid=189370&extra=page=1