P
Peter Strøiman
Hi.
I'm translating an old C++ project to .NET and I have a big problem.
The project has the capability of running scripts - with support for
VBScript and JScript and this feature is used extensively.
I would like my project to be backward compatible ( at least in phase 1 )
and thus it should be able to run the same scripts.
Browsing through the .NET framework I can't find any VBScript execution
capabilities. Thus I could use the same solution as in my C++
implementation - to use the MS Script Control.
!BUT!
The script control is appartment threaded. In my old application I had no
problem limiting myself to being appartment threaded. But when converting to
..NET - the project is going to run in a multithreaded appartment.
Because I am going to implement COM objects in my project that the scripts
can access - I have a situation where the script is calling ( quite a lot )
my classes across an appartment boundary - and that is a major performance
killer.
Anybody have any other suggestions as to how I can implement VBScript
functionality.
Regards,
Peter Strøiman
I'm translating an old C++ project to .NET and I have a big problem.
The project has the capability of running scripts - with support for
VBScript and JScript and this feature is used extensively.
I would like my project to be backward compatible ( at least in phase 1 )
and thus it should be able to run the same scripts.
Browsing through the .NET framework I can't find any VBScript execution
capabilities. Thus I could use the same solution as in my C++
implementation - to use the MS Script Control.
!BUT!
The script control is appartment threaded. In my old application I had no
problem limiting myself to being appartment threaded. But when converting to
..NET - the project is going to run in a multithreaded appartment.
Because I am going to implement COM objects in my project that the scripts
can access - I have a situation where the script is calling ( quite a lot )
my classes across an appartment boundary - and that is a major performance
killer.
Anybody have any other suggestions as to how I can implement VBScript
functionality.
Regards,
Peter Strøiman