- or download this
var host = new ScriptControl();
host.Language = "VBScript";
...
host.AddCode(text);
dynamic obj = host.Run("GetTestClass");
- or download this
Can't locate public method Xyz() for System.__ComObject
- or download this
sub UseScriptControl {
my ($self, $text) = @_;
...
$obj->Xyz();
}
- or download this
use strict;
use Win32;
use Win32::OLE::Variant;
- or download this
use PerlNET qw(typeof);
...
PerlNET::null("System.Reflection.Binder"),
$obj,
"System.Object[]"->new());