Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

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

$
0
0
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;)

Viewing all articles
Browse latest Browse all 1710

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>