iactivescript

What to pass as the first parameter to IActiveScriptProfilerControl.StartProfiling?

心不动则不痛 提交于 2019-12-25 02:56:03
问题 Trying to use IActiveScriptProfilerControl::StartProfiling from my C# code, I've created this interface definition: [ComImport] [Guid(@"784b5ff0-69b0-47d1-a7dc-2518f4230e90")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IActiveScriptProfilerControl { void StartProfiling( ref Guid clsidProfilerObject, ProfilerEventMask eventMask, uint dwContext); // ... } Which I believe is correctly translated to .NET. The original first parameter is defined as [in] REFCLSID

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

独自空忆成欢 提交于 2019-12-08 07:06:56
问题 We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine using AddNamedItem with the SCRIPTITEM_CODEONLY option to create our own modules (namespaces). Unfortunately, we haven't been able to get this to work with Chakra. Even the most trivial example where we add a symbol and immediately retrieve its script

Error adding SCRIPTITEM_CODEONLY symbol using IE9 JS engine (Chakra)

回眸只為那壹抹淺笑 提交于 2019-12-06 17:48:25
We've been using active scripting in our browser extension (BHO) for a while with the old JScript engine (CLSID_JScript), and we recently decided to support the new IE9 script engine (Chakra) as well. One thing we do is add symbols to the engine using AddNamedItem with the SCRIPTITEM_CODEONLY option to create our own modules (namespaces). Unfortunately, we haven't been able to get this to work with Chakra. Even the most trivial example where we add a symbol and immediately retrieve its script dispatch yields an E_OUTOFMEMORY error. if (SUCCEEDED(hr)) { hr = scriptEngine->AddNamedItem(L"test",

What is the ProgId or CLSID for IE9's Javascript engine (code-named “Chakra”)

和自甴很熟 提交于 2019-11-26 09:07:50
问题 Using .NET, I can write an app that hosts a scripting engine that complies with Microsoft\'s IActiveScript conventions. This includes JScript and VBScript from Microsoft, and also PerlScript, RubyScript and I don\'t know what else from third-parties. The way to do it in code is something like this: Type engine = Type.GetTypeFromProgID(progId, true); _engine = Activator.CreateInstance(engine) as IActiveScript; where the progId can take the value Javascript, JScript, ECMAScript, VBScript, and