Help for this page

Select Code to Download


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