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

S

Subodh

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
 
G

Guest

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#).
--
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
 
S

Subodh

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#).
--
David Antonhttp://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

Thanks David
 

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