Hehe - I'm kinda protective of my ActiveX components source code, since it DOES take quite some time to write. But it's really no major chore to make an ActiveX control with Visual Studio 6/2002/2005 - it's pretty much a one-click process if you use the MFC libraries.
OK - the MFC makes the installers huge - but it's so EASY!
Writing an ActiveX also has nothing to do with the Media Center SDK - the only reason you'd need that is to write the actual HTML code (unless you want things to run via a background addin - and to be honest, I haven't written one of those yet, although there are excellent tutorials).
But - there are THREE MAJOR POINTS when making an AcitveX control for use with scripting lanugages and the MCE web browser....
1) Make sure your class implements 'IsInvokeAllowed', make sure it returns TRUE rather than FALSE. Don't worry - it's a normal override. It only takes a couple of clicks, but DON'T FORGET IT, or your scripts won't be able to call member functions or access any variables!
2) Make sure that you create two registry keys when you install your control (or when registering them)
HKEY_CLASSES_ROOT\CLSID\<control guid>\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}
HKEY_CLASSES_ROOT\CLSID\<control guid>\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}
for the exact format of the <control guid> section, just register your control and then search for it in the registry. You'll be able to copy it out of there and into your installer or application.
3) The thing that I occasionally forget, when setting up your installer, make SURE that you've told the installer to register the OCX controls (just click the file in the editor and change the 'Register' property to 'OCXSelfReg'.
If you ever need help whacking something together, I can help - but right now, I'm not quite up to releasing source-code to the world, even though there's not too much in it.
If you want to SEE the code in action, try
http://www.push-a-button.com.au/down...BETA_1.0.5.msi - I use an ActiveX control to parse the PHP for me.