I need to create a COM object which is callable from Javascript. I've been told that to do this, you need a COM object which also implements a class factory and it was suggested here that I try ATL. Someone pointed me to a Code Project ATL sample, however that doesn't cover the class factory.
I'm able to build a small ATL project with a simple object, but am unable to instantiate it, presumable because I haven't provided the class factory.
So, does anyone have experience building a simple COM object in VS2010 via ATL which can be called from Javascript?
EDIT: well, in reading the documentation for the DECLARE_CLASSFACTORY_EX it sounds like a default class factory IS provided. So now I'm not sure what's missing. What is needed to instantiate and invoke the class from Javascript?
EDIT: Also, to clarify, the Javascript where I'm calling the object from is in an HTML page being shown in the IE ActiveX control in an MFC dialog app. So that's the context in which the Javascript will run.