You will have to find out the correct ProgId (same as Class String). This is mostly not the same as the name of the class you want to use.

You can find that ID by searching the registry.

When a COM DLL is registered, ProgID-entries are placed in the registry to allow clients and the COM libraries to locate, create, and use classes in the COM DLL. The registry entries for COM classes are located in HKEY_CLASSES_ROOT in the system registry.

The ProgID keys are located at:

\HKEY_CLASSES_ROOT\<progid>
For example, if you wanted to create a DataBase-Jet-Object from the Jet-engine (DAO, same as MS Access uses), the ProgID for for the DAO-Classes is located at \HKEY_CLASSES_ROOT\DAO.DBEngine.36 (Version 3.6)

In VBScript this would be written as

set jet = CreateObject ("DAO.DBEngine.36") set db = jet.OpenDatabase("path\to\database")
So you have to start "regedit" and search for ProgId that belongs to the DLL you want to use.

Update:

The ProgID has one subkey called CLSID. This contains the CLSID for the class, and this is how a ProgID can be mapped to the CLSID that is then used to instantiate a COM class.


In reply to Re: Accessing Bloomberg API's via Win32::OLE by holli
in thread Accessing Bloomberg API's via Win32::OLE by unk1911

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.