Developing Pocket Outlook Add-Ins, Page 2
Register Your Add-In
The simplest but most important step in deploying your Add-In is to register it to be used from the required Pocket Outlook application. To make it happen, there are only a few really simple steps you should do to proceed:
- Create a key in registry under HKLM\Software\Microsoft\PimApps\PimExtensions
To avoid any conflicts with any other possible add-ins, you can put here; for example, your company name.
- Create two entries under this key:
- DLL (REG_SZ)To provide a full path to your DLL; for example, \Windows\POOM2.dll.
- Menu (REG_SZ)To define the text of your Command in appropriate Tools menu; for example, "Call Our Developer Test."
Usually, such registration is performed during the installation process; you only need to define appropriate Registry entries in your favorite Install tool, that's all. Please note that you may insert your command (or commands) into several applications, getting it registered for each one of them. The result of such registration is shown in Figure 3:
Later on, your Add-In will get a caller type through the ptData parameter of the CePimCommand function. Unfortunately, you won't be able to place several commands into one DLL because there is no info about which command was selected.
Now, you have enough information and samples to get POOM working in any way you just want to. With the growing popularity of mobile solutions, you can significantly enforce your applications by providing integrated support with Pocket Outlook. I obviously skipped some minor details in the discussions, but all you need to get started, you already know. Just do it.
Download the accompanying code's zip file here.
About the Author
Alex Gusev started to play with mainframes at the end of the 1980s, using Pascal and REXX, but soon switched to C/C++ and Java on different platforms. When mobile PDAs seriously rose their heads in the IT market, Alex did it too. Now, he works at an international retail software company as a team leader of the Mobile R department, making programmers' lives in the mobile jungles a little bit simpler.