(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
program TestTest;

uses
  ActiveX,ComObj;

var
  test : Variant;

begin
  writeln('COM/Pascal dynamic:');
  CoInitialize(nil);
  test := CreateOLEObject('Test.CoTest');
  writeln('123 + 456 = ', test.Add(123, 456));
  writeln('ABC + XYZ = ', test.Concat('ABC', 'XYZ'));
  writeln('IV = ', test.IV, ' SV = ', test.SV); 
  test.IV := 123;
  test.SV := 'ABC';
  writeln('IV = ', test.IV, ' SV = ', test.SV); 
  CoUninitialize;
end.
