The VS compilation error is depicted as follows:
1>f:\company\newphone\softphoneservice\softphoneservice\events.h: Error C2143: Syntax errors: Missing ";" (In front of "*")
1>f:\company\newphone\softphoneservice\softphoneservice\events.h: Error C4430: Missing type specifier-assumed to be int. Note: C + + does not support the default int
1>f:\company\newphone\softphoneservice\softphoneservice\events.h: Error C4430: Missing type specifier-assumed to be int. Note: C + + does not support the default int
Error location to declaration, error reason:
Include (include) another class in one class, and this class is included in the other. So you need to use a declarative approach. Otherwise error (Cagent and cevents)
Namespace SPS
{
Class Cagent;
Class Cevents
{
Public
Char event[1024*3+1];
Char attevent[1024*3+1];
cagent* PA;
cagent* PB;
Public
Cevents (void);
~cevents (void);
};
}//namespace SPS
C + + compilation error