Internal visibility

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

How do I set the visibility of a member in managed c++ to internal (I'm used
to using it in C#, but can't find in C++.NET)

Thanks,
 
Hey,

#define __internal public private

Perhaps not very good style in regular C++, but a lot easier to know the
visibility. I know that two leading underscores is a no-go in standard C++,
but I'm not very fond of mixing visibility (access-) specifiers (it's plain
ugly I think).

Cheers,
Tom Tempelaere.
 
Hey,
#define __internal public private

Now if only I could get the '__internal' to show up in blue in my source
code, like other managed C++ keywords (like __sealed and __gc)...

Tom Tempelaere.
 
TT (Tom Tempelaere) said:
Now if only I could get the '__internal' to show up in blue in my source
code, like other managed C++ keywords (like __sealed and __gc)...

This is not something that I have tried so take what follows with a grain of
salt.

This was possible with VC++ 6.0. When I searched the MSDN, I found
instructions for the old IDE and this link:

http://msdn.microsoft.com/library/d...vxtskDefiningKeywordsInVisualC.asp?frame=true

which I think applies to VS.Net 2005.

I don't know if it works with the current version. Perhaps one of the MS
guys will set us straight.

Regards,
Will
 
internal keyword works on whidbey. there is no leading __ stuff (i.e.
not __internal).

class A
{
internal:
void f(){}
}

when you write "public private" or "private public", compiler generates
a warning saying that "public private is deprecated, use internal".
intellisense on beta1 does not highlight internal keyword with blue
color like it does on public, private or other reserved words.

ismail
 
Back
Top