From: John on
Hi Christopher,

Thank you very much. The "Register output" option in VS2005 did the trick! Now that I can get it working properly, I can dig deeper into the code to see how it all works!

Thanks once again! :)

Regards,
John



Christopher Fairbairn [MVP] wrote:

Re: SIP example from Programming Windows CE
21-Sep-09

Hi John,

<John Lim> wrote in message news:200991912437john.lim(a)pciltd.com.sg...

There are a couple of ways to do this depending upon which way suits your
development work flow the best.

One way is to deploy the SIP input method via a CAB file. Within the CAB
file you can mark the DLL as needing to be registered with COM. This will
cause the installer to load the DLL during installation and invoke its
DllRegisterServer function in order to allow it to configure itself.

If you debug/deploy via Visual Studio you can also go into the Project
Properties dialog and look for a "Register output" option within the
Deployment section. Turning this on will cause Visual Studio to perform the
same task when it deploys your DLL to the device.

Taking a look at Doug Boling's example Input Method you will notice a
DllRegisterServer function within IMCommon.cpp that is reponsible for
performing the tasks required to register the IM with the OS.

Hope this helps,
Christopher Fairbairn

EggHeadCafe - Software Developer Portal of Choice
WPF DataGrid Custom Paging and Sorting
http://www.eggheadcafe.com/tutorials/aspnet/8a2ea78b-f1e3-45b4-93ef-32b2d802ae17/wpf-datagrid-custom-pagin.aspx