473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Widget_Paint()
File "<Script Block >", line 36, in Widget_Paint
Graphics.Clear
File
"C:\Python23\Lib\site-packages\win32comext\axscript\client\pyscript.py",
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.

Thanks!


Jul 18 '05 #1
0 1507

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alejandra Parra | last post by:
I have the next code: Dim Script As Object = CreateObject("MSScriptControl.ScriptControl") I've run this application in WinXP and it works normally, but if I run the application in Win98, the...
9
by: Aguilar, James | last post by:
Hey guys. A new question: I want to use an STL libarary to hold a bunch of objects I create. Actually, it will hold references to the objects, but that's beside the point, for the most part. ...
6
by: Alfonso Morra | last post by:
I have written the following code, to test the concept of storing objects in a vector. I encounter two run time errors: 1). myClass gets destructed when pushed onto the vector 2). Prog throws a...
0
by: Slava | last post by:
Hi All, Is it possible to retrieve IActiveScriptSite interface from MSScriptControl using C#? I need this for implementation Exit function ( IActiveScript::Close ). Jscript running inside win...
1
by: Jozsef Bekes | last post by:
Hi All, I need to offer scripting possibilities in my app, and have to use MSSCriptControl for some reasons. I would like to use the feature that's called variable number of arguments, that is...
1
by: Michael Kremser | last post by:
Hi NG! I have converted a running VS.net 2003 solution to VS.net 2005 Beta 2 (Version 8.0.50215.44) and tried to compile it. This is the code: myScriptingEngine = new...
0
by: DraguVaso | last post by:
Hi, I have a VBScript that I want to run from my VB.NET application. I initialize everything like this: AxScriptControl1.Language = "VBScript" AxScriptControl1.Reset()...
161
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.....
14
by: Jess | last post by:
Hello, I learned that there are five kinds of static objects, namely 1. global objects 2. object defined in namespace scope 3. object declared static instead classes 4. objects declared...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.