(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program d_vb;

{$APPTYPE CONSOLE}

uses
  ActiveX,ComObj;

var
  tst : Variant;

begin
  CoInitialize(nil);
  tst := CreateOLEObject('Delphi.Test');
  writeln(tst.Dup('ABC', 3));
  CoUninitialize;
  readln;
end.
