java - How to access an IUnknown com interface on com -


as understand, every program using com communication has implement iunknown interface.

the query interface method method calls query interface.

my question how can use method or access iunknown interface, using jacob jar or vbscript?

if possible i'd code example in vbscript.

set x = createobject("object.name") 

that's vbscript.

this in appendix of automation programming reference. note vbs getobject/createobject. cocreateinstance gets iunknown. used query idispatch. other interfaces inheiret iunknown queryref on interface iunknown's methods in every interface.

  **component automation**   

mapping visual basic automation

visual basic provides full support automation. following table lists how visual basic statements translate ole apis.

visual basic statement  ole apis    createobject (progid)  clsidfromprogid   cocreateinstance   queryinterface idispatch interface.  getobject (filename, progid)  clsidfromprogid   cocreateinstance   queryinterface ipersistfile interface.  load on ipersistfile interface.  queryinterface idispatch interface.   getobject (filename)  createbindctx creates bind context subsequent functions.  mkparsedisplayname returns moniker handle bindmoniker.  bindmoniker returns pointer idispatch interface.  release on moniker handle.  release on context.  getobject (progid)  clsidfromprogid   getactiveobject on class id.  queryinterface idispatch interface.   dim x new interface  find clsid interface.  cocreateinstance   queryinterface     © microsoft corporation. rights reserved.   

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -