



Hi All,
I've written an ActiveX Script Host in C++ so I can automate my application. I've been testing some of ActiveX script languaages and I have seemed to run into a snag with ActivePython.
When I create the host (engine), I add a named item to it (IActiveScript::AddNamedItem) which references one of my custom COM objects. When I do this when creating VBScript, JScript, PerlScript and RubyScript, I can call methods on my object. For example
MyObj.MessageBox("Hello")
But, when I create a Python-based engine, my engine's GetItemInfo (IActiveScriptSite::GetItemInfo) member is never called - which is odd since it works with all other engines. When I run the above code:
--
def Hello():
msg = 'Hello from Python!'
MyObj.MessageBox(msg)
Hello()
--
I get a the following error: "TypeError: 'NoneType' oject is not callable"
I am testing with ActivePython 2.4.3.11 for Windows (x86). I've also "registered" ActivePython per the instructions in the online help - the ASP samples in the online help work.
Any help here would be appreciated - I'd like to support this engine.
Thanks in advance.