enums in mc++

C

Cartoper

My current project is a makeup of both C#.Net 1.1 and MC++. Is there
any way to define an enum in MC++ that I can use ToString on in C# to
get the text value?
 
B

Ben Voigt [C++ MVP]

Cartoper said:
My current project is a makeup of both C#.Net 1.1 and MC++. Is there
any way to define an enum in MC++ that I can use ToString on in C# to
get the text value?

Did you try "__gc enum"?

However, MC++ is buggy and you really need to migrate to C++/CLI as soon as
possible.

In C++/CLI, it would be "enum class".
 
C

Cartoper

Did you try "__gc enum"?

However, MC++ is buggy and you really need to migrate to C++/CLI as soon as
possible.

In C++/CLI, it would be "enum class".

Oh trust me, if I had my say it would be in .Net 3.5, but the powers
that be want it keep this in 1.1, I think it is nuts, but it is what
it is!
 
B

Ben Voigt [C++ MVP]

Cartoper said:
Oh trust me, if I had my say it would be in .Net 3.5, but the powers
that be want it keep this in 1.1, I think it is nuts, but it is what
it is!

Ask them why they don't run it on NT 3.51. Virtually every argument for
upgrading the OS (security, new features, bug fixes, vendor support, etc)
applies to a middleware platform such as .NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top