Hi Everyone,
I have a simple but subtle question. Below you see two different declaration variants of the same class from a DLL header file.
Can anybody tell me the difference of this class declaration;
class __declspec(dllexport) Car {
public:
Car();
void drive(void);
typedef enum { None, Indented } Formatting;
}
from this one?
class Car {
public:
__declspec(dllexport) Car();
__declspec(dllexport) void drive(void);
__declspec(dllexport) typedef enum { None, Indented } Formatting;
}
In the first declaration, the class itself is gets *__declspec(dllexport)*, whereas in the latter case each class element is declared individually so.
Are they different or do they have anything in common?