問題タブ [msscriptcontrol]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
3145 参照

c# - C#MSScriptControl AddObjectを使用してVBScriptを文字列で実行できませんでした

これは私のC#プログラムです:

私のVBScriptファイルの内容:

そして最後に、これは文字列オブジェクトで AddObject() を使用するときの私の例外です:

System.Runtime.InteropServices.COMException (0x800A0005): Program.cs の Srcipting.Program.CallVbsFunction(Object p) の MSScriptControl.IScriptControl.Run(String ProcedureName, Object[]& Parameters) での無効なプロシージャ呼び出しまたは引数