Accessing Multiple Instances of DIAdem via OLE

Updated Aug 8, 2022

Reported In

Software

  • DIAdem

Operating System

  • Windows

Issue Details

I want to start and control multiple instances of DIAdem via OLE/ActiveX. When creating a second object like shown below this is not working.
oDIAdem1 = CreateObject("DIAdem.TOCommand")
oDIAdem2 = CreateObject("DIAdem.TOCommand")
How can I open multiple instance of DIAdem?

Solution

To open multiple instances you need to modify a DIAdem registry entry called Instancing described in DIAdem Entries in the Windows Registry.
DIAdem_Instancing_Information
 
  1. Open Registry Editor application on your Windows PC and navigate to HKEY_CLASSES_ROOT\CLSID\{285E4FB2-F633-11D1-85DC-008048D9A408}\StartParameter
  2. Change the value data of Instancing (REG_DWORD) option to 1 which allows you to open and control multiple instances of DIAdem.
Instancing_option_change