3 ms·
This mechanism is what enables the old ActiveX Scripting APIs (used by classic JScript and VBScript) to consume VB6 classes natively. It's very easy to embed a
by kevingadd 4y ago
This mechanism is what enables the old ActiveX Scripting APIs (used by classic JScript and VBScript) to consume VB6 classes natively. It's very easy to embed a fully-functional scripting environment in a VB6 app and even define custom classes in VBScript to be consumed by VB6 code.
At one point you could also embed Python because there was a compatible COM wrapper for it, but it had performance and integration issues and maintenance eventually stopped.
- ptx 4y agoAre you talking about pywin32? That's still maintained [1] and works great. [1] https://github.com/mhammond/pywin32/ https://github.com/mhammond/pywin32/
- kevingadd 4y agoIIRC, there was a secondary component that acted as a full windows scripting host and could even be consumed within internet explorer to run python scripts much like how you could use vbscript in webpages at one point. (what an ill-advised little escapade that was). I'm not sure how you would even use it now, so maybe it still exists! I guess maybe you'd use wscript.exe with a special command line flag?