This zip file contains two VS 2008 projects. One is a simple HTML and Script Widget that calls upon the second projects COM component functionality.
The .Widget file can be copied to your WM6.5 Emulator.
Compiling the Wid2 project and then deploying to your emulator will create the required CAB file installation for the component including registration. An additional registry key is required to identify the component as available to the Widget engine. See the blog post on Widgets for more details.