![]() |
![]() |
|
|||||||
| Register | Forum Rules | Getting Started! - Guide | Blog | Videos | Gallery | Members List | Social Groups | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
enums in mc++
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Cartoper" <cartoper@gmail.com> wrote in message news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... > 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". |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Cartoper" <cartoper@gmail.com> wrote in message news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... > 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". |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Re: enums in mc++
On Dec 13, 4:55 pm, "Ben Voigt [C++ MVP]" <r...@nospam.nospam> wrote:
> "Cartoper" <carto...@gmail.com> wrote in message > > news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... > > > 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". 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! |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Re: enums in mc++
On Dec 13, 4:55 pm, "Ben Voigt [C++ MVP]" <r...@nospam.nospam> wrote:
> "Cartoper" <carto...@gmail.com> wrote in message > > news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... > > > 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". 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! |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Cartoper" <cartoper@gmail.com> wrote in message news:dabf3978-831d-43ba-aabd-c5fa9eb65e4a@e25g2000prg.googlegroups.com... > On Dec 13, 4:55 pm, "Ben Voigt [C++ MVP]" <r...@nospam.nospam> wrote: >> "Cartoper" <carto...@gmail.com> wrote in message >> >> news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... >> >> > 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". > > 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. |
|
|
|
#7 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Cartoper" <cartoper@gmail.com> wrote in message news:dabf3978-831d-43ba-aabd-c5fa9eb65e4a@e25g2000prg.googlegroups.com... > On Dec 13, 4:55 pm, "Ben Voigt [C++ MVP]" <r...@nospam.nospam> wrote: >> "Cartoper" <carto...@gmail.com> wrote in message >> >> news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... >> >> > 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". > > 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. |
|
|
|
#8 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Ben Voigt [C++ MVP]" <rbv@nospam.nospam> wrote in message news:%23lL92KdPIHA.5208@TK2MSFTNGP04.phx.gbl... > > "Cartoper" <cartoper@gmail.com> wrote in message > news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... >> 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"? Sorry, it is "__value enum". http://msdn2.microsoft.com/en-us/lib...60(VS.71).aspx > > 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". > |
|
|
|
#9 |
|
Guest
Posts: n/a
|
Re: enums in mc++
"Ben Voigt [C++ MVP]" <rbv@nospam.nospam> wrote in message news:%23lL92KdPIHA.5208@TK2MSFTNGP04.phx.gbl... > > "Cartoper" <cartoper@gmail.com> wrote in message > news:934e48b6-7a6f-4676-9097-98af5ebed28c@i29g2000prf.googlegroups.com... >> 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"? Sorry, it is "__value enum". http://msdn2.microsoft.com/en-us/lib...60(VS.71).aspx > > 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". > |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Home - Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |