TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > VC.NET

Notices

enums in mc++

VC.NET


Reply
 
Thread Tools Display Modes
Old 14-12-2007, 08:59 PM   #1
Cartoper
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?
  Reply With Quote
Old 14-12-2007, 08:59 PM   #2
Ben Voigt [C++ MVP]
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".


  Reply With Quote
Old 14-12-2007, 08:59 PM   #3
Ben Voigt [C++ MVP]
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".


  Reply With Quote
Old 14-12-2007, 08:59 PM   #4
Cartoper
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!
  Reply With Quote
Old 14-12-2007, 08:59 PM   #5
Cartoper
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!
  Reply With Quote
Old 14-12-2007, 09:00 PM   #6
Ben Voigt [C++ MVP]
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.


  Reply With Quote
Old 14-12-2007, 09:00 PM   #7
Ben Voigt [C++ MVP]
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.


  Reply With Quote
Old 14-12-2007, 09:00 PM   #8
Ben Voigt [C++ MVP]
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".
>



  Reply With Quote
Old 14-12-2007, 09:00 PM   #9
Ben Voigt [C++ MVP]
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".
>



  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:31 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional