I'm trying to implement the IProvideClassInfo on a C# COM object so it's events can be used from Windows Script Host (WSH). I've managed to implement the interface and trace a call in to my GetClassInfo method. However, hooking up the events fails with "Cannot connect object".
Has anyone managed to do this?
This is my script code (JScript):
function AP_GetActionsResponse ()
{
WScript.Echo ("AP_GetActionsResponse event");
}
// It fails on this var obj = WScript.CreateObject ("Promotions.Promotion", "AP_");
Help would be much appreciated.