{
Protected:
DECLARE_DYNCREATE (CMessg)
Public:
CMessg ();
//the Attributes
Public:
Cstrings m_strText;
CHAR m_tag;//0 means no need to emit sound, one says to emit sound
CHAR m_buffer [MAX_BUFFER_SIZE];
//Operations
Public:
Void Init ();
//Implementation
Public:
Virtual ~ CMessg ();
Virtual void Serialize (CArchive& Ar);//overridden for the document I/o
# ifdef _DEBUG
Virtual void AssertValid () const;
Virtual void Dump (CDumpContext& Dc) const;
# endif
};
# endif
Error is Messg. CPP
C: \ program files \ Microsoft visual studio \ myprojects \ winsocketchat \ messg h (26) : error C2065: 'MAX_BUFFER_SIZE: undeclared identifier
C: \ program files \ Microsoft visual studio \ myprojects \ winsocketchat \ messg h (26) : error C2057: expected constant expression
C: \ program files \ Microsoft visual studio \ myprojects \ winsocketchat \ messg h (26) : warning C4200: nonstandard extension 2: zero - sized array in struct/union
An error occurred when performing cl. Exe.
CodePudding user response:
This is a c + +, the mistake on the Delphi versionThe error C2065: 'MAX_BUFFER_SIZE: undeclared identifier
Clear is MAX_BUFFER_SIZE undefined, define its header files may be added
CodePudding user response:
To introduce.cpp Sound. H