prog.cpp:6:18: error: variable or field '__stdcall' declared void
virtual void __stdcall Age(const int Value) = 0;
^
prog.cpp:6:18: error: expected ';' at end of member declaration
prog.cpp:6:51: error: ISO C++ forbids declaration of 'Age' with no type [-fpermissive]
virtual void __stdcall Age(const int Value) = 0;
^
prog.cpp:7:17: error: '__stdcall' declared as a 'virtual' field
virtual int __stdcall Age() = 0;
^
prog.cpp:7:17: error: expected ';' at end of member declaration
prog.cpp:7:35: error: ISO C++ forbids declaration of 'Age' with no type [-fpermissive]
virtual int __stdcall Age() = 0;
^
prog.cpp:8:18: error: variable or field '__stdcall' declared void
virtual void __stdcall free(void) = 0;
^
prog.cpp:8:18: error: expected ';' at end of member declaration
prog.cpp:8:41: error: ISO C++ forbids declaration of 'free' with no type [-fpermissive]
virtual void __stdcall free(void) = 0;
^
prog.cpp:6:28: error: initializer specified for non-virtual method 'int AbstractPerson::Age(int)'
virtual void __stdcall Age(const int Value) = 0;
^
prog.cpp:7:27: error: initializer specified for non-virtual method 'int AbstractPerson::Age()'
virtual int __stdcall Age() = 0;
^
prog.cpp:8:28: error: initializer specified for non-virtual method 'int AbstractPerson::free()'
virtual void __stdcall free(void) = 0;
^
prog.cpp:16:16: error: variable or field '__stdcall' declared void
inline void __stdcall Age(const int Value) { FAge = Value; };
^
prog.cpp:16:16: error: expected ';' at end of member declaration
prog.cpp:16:45: error: ISO C++ forbids declaration of 'Age' with no type [-fpermissive]
inline void __stdcall Age(const int Value) { FAge = Value; };
^
prog.cpp:17:8: error: expected ';' at end of member declaration
int __stdcall Age() { return FAge; };
^
prog.cpp:17:22: error: ISO C++ forbids declaration of 'Age' with no type [-fpermissive]
int __stdcall Age() { return FAge; };
^
prog.cpp:18:8: error: variable or field '__stdcall' declared void
void __stdcall free(void) { if (this) delete this; };
^
prog.cpp:18:8: error: expected ';' at end of member declaration
prog.cpp:18:27: error: ISO C++ forbids declaration of 'free' with no type [-fpermissive]
void __stdcall free(void) { if (this) delete this; };
^
prog.cpp:23:22: error: expected constructor, destructor, or type conversion before '(' token
extern "C" __declspec(dllexport) AbstractPerson* NewPerson()
^