COM objects for Wis@d

I’m new to com object. For the api of Wisa, I need to use it. How do I get started? From the site I get a manuel with the next examples to use the api with other languages:

Visual Basic:

  • Dim obj As wisaapi.APIWisa
  • Set obj = New wisaapi.APIWisa

Delphi:

  • Var obj : OleVariant;
  • obj:=CreateOleObject(‘wisaapi.APIWisa’);

PHP:

  • $obj = new COM(“wisaapi.APIWisa”)

Does this translate to the next line?

  • $obj = New-Object -ComObject wisaapi.APIWisa

Afterwards I will use “$obj | Get-Member” to discover useful commands.

You are right. Get-Member is the right way to explore objects.

1 Like