CreateDispatch



  • BOOL CreateDispatch( REFCLSID clsid, COleException* pError = NULL );
    BOOL CreateDispatch( LPCTSTR lpszProgID, COleException* pError = NULL );

    clsid
    Class ID of the IDispatch connection object to be created.

    lpszProgID
    Pointer to the programmatic identifier, such as “Excel.Document.5”, of the automation object for which the dispatch object is to be created.

    wo bekomm ich bei ner vb activex dll den ersten parameter her?



  • Du kannst die DLL mit OLEView öffnen und dir die ProgId bzw. ClassId der CoClasses rausschreiben.



  • habs hinbekommmen ... wenn auch n bissi anders

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\<Name des Moduls>

    <Name des Moduls> enspricht "LPCTSTR lpszProgID" und dann funzts


Anmelden zum Antworten