_CLASSDEF

_CLASSDEF(classname)

What is the use of this code. I came across this in many built in header files but couldn't figure out what it is for.

This command is used at the starting of a file and separately does it for all the classes in the file.

class _CLASSTYPE classname:

and the class definition starts like this. What is that "_CLASSTYPE"?

Thanks
They're macros. We can't tell you what they do without looking that their definition.
closed account (z05DSL3A)
IIRC they are from the Borland ObjectWindows library.

I think
_CLASSDEF(classname)
expands to
1
2
3
class _CLASSTYPE classname;
typedef classname  FAR * PTclassname; 
typedef classname ... some more pointers


I can't remember what the _CLASSTYPE is off the top of my head.

Edit: _CLASSTYPE would probable expand to _export, far or similar depending on what is #defined.
Last edited on
sorry I couldn't reply for a while.

I had posted some of these headers here http://www.cplusplus.com/forum/general/24354/
Topic archived. No new replies allowed.