Announcement

Collapse
No announcement yet.

COM Browser Circular Reference

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • COM Browser Circular Reference

    Hopefully someone can help as this is driving me crazy. When I use the COM Browser (PB9) to create an include for my application it is creating a circular reference that I can't seem to resolve. I understand that the TYPES and UNIONS are not always in the correct order. As I am trying to resolve all the conflicts there is one that I can't seem to overcome.

    I am exporting the "Active DS Type Library 1.0" (activeds.tlb).

    Here is the union reference which is declared first:

    Code:
    UNION uTag___MIDL_IOleAutomationTypes_0005
        lptdesc AS tagTYPEDESC
        lpadesc AS tagARRAYDESC
        hreftype AS DWORD
    END UNION
    Further down the types are declare after the union. Though the tagTYPEDESC references the union. So moving them ahead in the order just causes the tagTYPEDESC to fail.

    Code:
    TYPE tagTYPEDESC
        PB___MIDL_0008 AS uTag___MIDL_IOleAutomationTypes_0005
        vt AS WORD
    END TYPE
    
    TYPE tagARRAYDESC
        tdescElem AS tagTYPEDESC
        cDims AS WORD
        rgbounds AS tagSAFEARRAYBOUND PTR
    END TYPE
    Thank you for any help that can be offered!


    ADS.INC

  • #2
    For a fix you can create copies of the types with different names and paste 'em in a place where the compiler likes 'em.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment

    Working...
    X