Symbian
Symbian OS Library

SYMBIAN OS V9.2

[Index] [Spacer] [Previous] [Next]



Location: gcce.h

NONSHARABLE_CLASS

NONSHARABLE_CLASS (x) class __declspec(notshared) x

Description

Declares a class as being non-sharable.

If a class is non-sharable, then a class implemented in another DLL cannot derive (inherit) from that class.

Declaring a class as non-sharable prevents the compiler from exporting compiler implementation-specific symbols, i.e. run-time type-information and virtual tables. This prevents classes in other DLLs from being able to derive from it.

Note :

The following code fragment shows how a non-sharable class is declared.

NONSHARABLE_CLASS(CMyClass) : public CBase
    {
    public :
    ...
    private :
    ...
    }

Parameters

x

The name of the class to be declared as non-sharable.