473,387 Members | 1,455 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,387 software developers and data experts.

The __abstract managed C++ extension

In the Managed Extensions for C++ Reference, I read:

"Applying __abstract to a class or structure does not imply that the result
is a __gc class or __gc structure."

However in the Managed Extensions for C++ Specification I immediately read:

"The __abstract keyword can only be applied to a __gc class or __gc
interface."

which contradicts the previous assertion.

So the question is: can __abstract be applied to a non __gc class/interface,
and if so when would it be used ?
Nov 16 '05 #1
3 1142
It means:

__abstract class Foo {}; // Error: __abstract does not imply __gc or
__interface
__abstract __gc class Foo {}; // OK
__abstract __gc __interface IFoo {}; // OK

Ronald Laeremans
Visual C++ team

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:u8****************@TK2MSFTNGP12.phx.gbl...
In the Managed Extensions for C++ Reference, I read:

"Applying __abstract to a class or structure does not imply that the result is a __gc class or __gc structure."

However in the Managed Extensions for C++ Specification I immediately read:
"The __abstract keyword can only be applied to a __gc class or __gc
interface."

which contradicts the previous assertion.

So the question is: can __abstract be applied to a non __gc class/interface, and if so when would it be used ?

Nov 16 '05 #2
Ronald Laeremans [MSFT] wrote:
It means:

__abstract class Foo {}; // Error: __abstract does not imply __gc or
__interface
__abstract __gc class Foo {}; // OK
__abstract __gc __interface IFoo {}; // OK
Wouldn't it have been more logical, therefore, to have __abstract always
mean __gc also ?

Ronald Laeremans
Visual C++ team

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:u8****************@TK2MSFTNGP12.phx.gbl...
In the Managed Extensions for C++ Reference, I read:

"Applying __abstract to a class or structure does not imply that the
result is a __gc class or __gc structure."

However in the Managed Extensions for C++ Specification I
immediately read:

"The __abstract keyword can only be applied to a __gc class or __gc
interface."

which contradicts the previous assertion.

So the question is: can __abstract be applied to a non __gc
class/interface, and if so when would it be used ?

Nov 16 '05 #3
We feel that it doesn't. For one because we reserve the right to have it
work with non __gc classes at some point in the future. But more importantly
because at least the concept "abstract" is completely orthogonal to the
concept of "gc-ness" despite the current implementation.

Ronald

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:e6**************@TK2MSFTNGP10.phx.gbl...
Ronald Laeremans [MSFT] wrote:
It means:

__abstract class Foo {}; // Error: __abstract does not imply __gc or
__interface
__abstract __gc class Foo {}; // OK
__abstract __gc __interface IFoo {}; // OK


Wouldn't it have been more logical, therefore, to have __abstract always
mean __gc also ?

Ronald Laeremans
Visual C++ team

"Edward Diener" <ed******@tropicsoft.com> wrote in message
news:u8****************@TK2MSFTNGP12.phx.gbl...
In the Managed Extensions for C++ Reference, I read:

"Applying __abstract to a class or structure does not imply that the
result is a __gc class or __gc structure."

However in the Managed Extensions for C++ Specification I
immediately read:

"The __abstract keyword can only be applied to a __gc class or __gc
interface."

which contradicts the previous assertion.

So the question is: can __abstract be applied to a non __gc
class/interface, and if so when would it be used ?


Nov 16 '05 #4

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

Similar topics

2
by: BCC | last post by:
Hi, I have a need to read in a very simple xml file and initialized some objects from the data. I was reading on the ms website that .net contains its own XML parser, and it sounds pretty good...
3
by: Lionel Schiepers | last post by:
I rencently tested an web application with ISAPI extensions that internally use managed extensions but the call to the ISAPI failed. I receive the following message: "A dynamic link library (DLL)...
1
by: Saurabh Boyed | last post by:
In some of the development computers the COM DLLS with managed extension turned on (even though there are no .NET projects in its add reference) is not able to register. regsvr32 hangs up, it does...
1
by: sklett | last post by:
STILL trying to wrap an unmanaged C++ class that is itself a wrapper to some COM stuff, not sure, it is littered with LPDISPATCH and InvokeHelper, etc. Problem is, when something goes wrong, I'm...
7
by: harishashim | last post by:
I am wrapping a digital camera API using Managed C++ VS .NET 2003). I have this function that called as bellow in the API sample. err = PR_RC_StartViewFinder( m_hCamera, //line 1...
0
by: EMMAY | last post by:
Hi guys, I'm building a MFC extension dll using c++.net 2003. everything was fine before I add the flag AFX_EXT_CLASS to a managed class. but once add this flag, as following: __gc class...
2
by: sck10 | last post by:
Hello, I have a java applet that builds a graph using an xml file. I can create the xml with the ashx file, however, the applet doesn't recognize the extension. What I am doing now is...
2
by: thomas | last post by:
Hi, I'm writting an extension in c for php. Looking at the life cycle of the extensions it looks like each extension is started up within its own thread - is this correct? When each request...
6
by: msb_6 | last post by:
Currently I have a PHP extension thats all written and compiles under windows, but the PC I'm going to end up putting it on is running Ubuntu 8.04 (g++ 4.2.3). I've delved into PHP documentation...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.