473,414 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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

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.E SM.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

Aug 31 '07 #1
2 15095
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
"Subodh" wrote:
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.E SM.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

Aug 31 '07 #2
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
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

"Subodh" wrote:
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.E SM.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
Thanks David

Aug 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: msnews.microsoft.com | last post by:
How can we access an internal class in a referenced file in a multi-file assembly. All documentation states the obvious purpose of the internal keyword on a class, but when referencing an...
2
by: Michael C | last post by:
Hi all I can access an internal class by this method if I do it within the namespace { namespace ClassTest public class1 {
6
by: Sgt. Sausage | last post by:
I know it's not possible, but I need a protected internal interface: protected internal interface ISomeInterface{ // yadda yadda yadda } Basically, I need an interface that is completely...
2
by: Anders Borum [.NET/C# MCP] | last post by:
Hello! With C# 2.0 coming up, I was wondering what your thoughts are regarding the introduction of access modifiers on set accessors. Personally, I like the first example, because of its...
5
by: Pete Davis | last post by:
I know I can use reflection to call internal, protected, and private methods in a class, but I need to instantiate an object that is public but has an internal constructor (The CurrencyManager...
8
by: Adam | last post by:
I've seen lots of mentions of the scope of an "internal" class. What's the scope of an "internal" method. Why would one use it as opposed to an "internal" class? Thanks in advance. Adam
2
by: Kolozs, Áron | last post by:
Hi everybody, The C# compiler reports a Compiler Error CS0052 in the following situation: I declared a type marked as "internal": namespace MyNamespace { internal class MyInteralClass
1
by: =?Utf-8?B?QnJpYW4gQ29iYg==?= | last post by:
This code is contained in one source file in VS 2005 project: using System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace ReflectionTest {...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.