|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Wrapping/Using Unmanaged EnumsHi,
Many in this group have dealt with converting unmanaged enums to managed ones, but my problem is slightly different. I am created a wrapper for an unmanaged class that uses several enums and contains functions that take whole enums as inputs. I have wrapped the functions and recreated the enums. However when I compile I get an error message which says I cannot convert the enum in my managed wrapper to the comparable one in the unmanaged class. What I need is either a way to pass __value enums to a wrapped unmanaged class or to reference a unmanaged enum in a managed wrapper. Any suggestions are appreciated. it would be great if you could post your code so we can see what is wrong.
<bida***@yahoo.com> schrieb im Newsbeitrag Show quote news:1146068436.990961.228490@v46g2000cwv.googlegroups.com... > Hi, > > Many in this group have dealt with converting unmanaged enums to > managed ones, but my problem is slightly different. I am created a > wrapper for an unmanaged class that uses several enums and contains > functions that take whole enums as inputs. > > I have wrapped the functions and recreated the enums. However when I > compile I get an error message which says I cannot convert the enum in > my managed wrapper to the comparable one in the unmanaged class. > > What I need is either a way to pass __value enums to a wrapped > unmanaged class or to reference a unmanaged enum in a managed wrapper. > > > Any suggestions are appreciated. > |
|||||||||||||||||||||||