How to expose an enum defined in a COM libraryusing php? RRS feed

  • Question

  • Hello! I have a problem...help me please..

    I have a COM library (writen in C#, named as Lib) with such enum:
    enum DECLSPEC_UUID("***") COLOR
            RED= 1,
            BLUE= 2,
            CREEN= 3,
        } ;

    In C# this enum calling as: 
    COMTest.ColorType((int)Lib.COLOR.RED, .....);

    So I need to do the same, but using PHP. I connected this library to PHP, but I don't know how to expose an enum. 

    Waiting for your advice. Thanks;)
    Wednesday, August 15, 2018 10:45 AM

All replies

  • Hi Irina_Miskiv,

    Thank you for posting here.

    Since your question is more related to PHP, you could post a new thread in StackOverFlow.


    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, August 16, 2018 7:01 AM