470,613 Members | 2,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

MSScriptControl objects

Hello all. Newcommer to the newsgroups so please let me know if Im not
adhering to any policy.

Ive setup an app (.NET app) which is using the MSScriptControl. I have the
ActivePython package installed and the ActiveScript engine for Python
registered. Thats all peachykeen.

Im running into a problem whereby Objects that Ive extended to the script
arent being 'seen' correctly by the engine. Other languages such as
VBScript, JScript and RubyScript are dealing with and using the objects just
fine. The following is an error that the pyscript engine returned upon using
an object ive named 'Graphics'. The following error occurs when I try to use
the methods, properties or subclasses of any object extended to the script
via MSScriptControl.AddObject.

Error Number : -2147352567

Description : Traceback (most recent call last):
File "<Script Block >", line 22, in Widget_Activate
File "<Script Block >", line 36, in Widget_Paint
line 146, in __getattr__
return self._scriptItem_.subItems[string.lower(attr)].attributeObject
AttributeError: 'NoneType' object has no attribute 'subItems'
Line 145 Column -1

I would greatly appreciate any feedback on this, and how to get objects
extended to the scripts working in python.


Jul 18 '05 #1
0 1332

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Alejandra Parra | last post: by
9 posts views Thread by Aguilar, James | last post: by
reply views Thread by Slava | last post: by
1 post views Thread by Michael Kremser | last post: by
reply views Thread by DraguVaso | last post: by
161 posts views Thread by KraftDiner | last post: by
14 posts views Thread by Jess | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.