Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2007

Tip: Looking for answers? Try searching our database.

Can we have a internal ref class in C++/CLI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Subodh - 31 Aug 2007 14:17 GMT
Hi All

Can we have a internal ref class in C++/CLI?
when i try to declare a internal class in my project i get error
message

internal ref class MyError abstract sealed
{
public:
    static List<String^>^ GetLastErrorListEnglish(void);
}

Error    1    error C2143: syntax error : missing ';' before '<class-head>'
d:\P4\Convergence\Trunk\src\content\esm\Symantec.ESM.Integration
\Include\ESMError.h    28
Error    2    error C4430: missing type specifier - int assumed. Note: C++
does not support default-int    d:\P4\Convergence\Trunk\src\content\esm
\Symantec.ESM.Integration\Include\ESMError.h    28

Any help will be appreciated

Thanks and Regards,
Subodh
David Anton - 31 Aug 2007 15:28 GMT
use 'private'.  In C++/CLI, 'private' at the outer class level means 'private
to the project', which is what 'internal' means in C#.  (and 'private' at the
inner class level has the same meaning as 'private' in C#).
Signature

David Anton
http://www.tangiblesoftwaresolutions.com
Convert between VB, C#, C++, and Java
Instant C#
Instant VB
Instant C++
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter

> Hi All
>
[quoted text clipped - 19 lines]
> Thanks and Regards,
> Subodh
Subodh - 31 Aug 2007 19:37 GMT
On Aug 31, 7:28 pm, David Anton <DavidAn...@discussions.microsoft.com>
wrote:
> use 'private'.  In C++/CLI, 'private' at the outer class level means 'private
> to the project', which is what 'internal' means in C#.  (and 'private' at the
[quoted text clipped - 32 lines]
> > Thanks and Regards,
> > Subodh

Thanks David

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.