Scott,
Unfortunately it's a litte bit more involved than that.
I am trying to use test code written in a scripting language called Python.
Python has good support for COM on win32, and is able to implement COM Servers and Clients.
However, the one thing that Python doesn't do is use or generate a type library.
So, using your suggestion to a question I posted a day or two ago regarding accessing a COM Server that has no type library, I wrote a simple VB DLL wrapper around the COM Server that's implmented in Python.
On the surface, this seemed to work out ok. The next problem I encountered however was when I tried to call methods off of the sequence context.
I pass a reference to the sequence context all the way down to my Python COM Se
rver, and then try to call methods on that server.
Any method call results in Error -17808. It is very likely that this is a problem in Python, however, I was looking for some more details on this particular error to try and work towards a resolution.
At this point, I am about to fall back on writing a C++ ATL COM Server that wraps up the Python Interpreter and call my scripts that way. I was hoping that I could get the Python Server to work though, because it would give full access to the sequence context from Python, without having to write all the code to expose the context to Python via the C++ DLL.
So, there's the story. I could give you some code if your interested, I don't know if you're familar with Python at all. I've looked to the Python community for some help on this as well, but haven't made any progress on that front.
The only other piece of data that seems odd is that any access to a property, for example, SequenceContext.Id, seems to work fine.
Howeve
r, the following line of code produces the error:
#Python Code accessing Sequence Context.
context.SetValNumeric("Locals.MyParm", 0, 10.0)
Jeff