2005/5/9

     
 

ACDKX COM+

artefaktur

ACDKX COM+ is a middleware between ACDK Objects and COM+ objects. You can use all ACDK Objects in Windows Languages, like Visual Basic, C#, VBScript, etc. You can also use all COM+ Objects in ACDK and all scripting languages like lisp, perl, tcl, python.


acdkx_com is a dynamic bridge between Windows COM and any ACDK objects.

With this bridge not only any COM objects can be accessed by  any ACDK DMI client language (like C++, CfgScript, Perl, Python, CORBA, Tcl, Lisp), but also make all ACDK Objects (implemented in C++, CfgScript, CORBA)  available as COM objects.


Here a sample to instrument word through ACDK Perl:

sub require_class($)
{
  my ($cls) = @_;
  my $cl = acdk::new("acdk/lang/ClassLoader");
  $cl->findClass($cls);
}

require_class('acdkx/com/CoObject');
$word = acdk::invoke_static('acdkx/com/CoObject', 'New', 'Word.Application');
$word->poke('Visible', 1);
$doc = $word->peek('Documents')->Add();
$sel = $word->peek('ActiveWindow')->peek('Selection');
$sel->TypeText("This is ");
$sel->peek('Font')->poke('Bold', 1);
$sel->TypeText("ACDK");
$sel->peek('Font')->poke('Bold', 0);
$sel->TypeText(" instrumenting Word through acdk_perl");
acdk::invoke_static('acdk/lang/Thread', 'sleep', 3000);
$word->Quit(0);
See also  acdkx::com::AcdkObject Manual.

On the other side the class AcObject implements a generic COM+ component Acdk.Object, which can be used to control all ACDK Objects.


Here a simple sample how to access ACDK Object via Visual Basic:

Private Sub Form_Load()
  Dim acdk As Object
  Set acdk = CreateObject("Acdk.Object")
  Dim sb As Object
  Set sb = acdk.New("acdk/lang/StringBuffer", "Hello ")
  sb.append "from VB"
  MsgBox sb.toString()
End Sub
See also  acdkx::com::ComObject Manual.


Sub chapter pages:

ACDKX COM+ is a middleware between ACDK Objects and COM+ objects. You can use all ACDK Objects in Windows Languages, like Visual Basic, C#, VBScript, etc. You can also use all COM+ Objects in ACDK and all scripting languages like lisp, perl, tcl, python.

ACDK COM+ provides an interface from ACDK to Windows COM and vice versa.

This is a generic installation for ACDK packages.

ACDK is available under the LGPL license.


Please refer also to: