G
Guest
I converted my VC++ 6.0 Project to VC++.NET and during compilation, I get the
following error everywhere:
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int g:\argusweb\source\gssutil\xmlmessage.h 20
If is referring to the line:
log_comment(char *psz_comment, long bStart=0);
You can see it in the .h file below:
// XmlMessage.h: interface for the XmlMessage class.
//
//////////////////////////////////////////////////////////////////////
#if
!defined(AFX_XMLMESSAGE_H__9D3221FC_2D98_45A5_A442_FC067DA2064D__INCLUDED_)
#define AFX_XMLMESSAGE_H__9D3221FC_2D98_45A5_A442_FC067DA2064D__INCLUDED_
#define WINVER 0x0502
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "msxml2.h"
#include "gss_types.h"
class XmlMessage
{
public:
static TCHAR* Escape(const TCHAR * pchXML);
log_comment(char *psz_comment, long bStart=0);
CString GetParseError();
static CString FormatDate(CString sDate, CString sDTFormat = _T("%Y/%m/%d
%H:%M:%S"));
XmlMessage(const TCHAR* pchXML, long lSpecial);
XmlMessage();
explicit XmlMessage(const long lGssMsg);
virtual ~XmlMessage();
operator long () {
return m_lGssMsg;
};
operator TCHAR* () {
TCHAR* pch = new TCHAR[m_sXml.GetLength() + 1];
_tcscpy(pch, m_sXml);
return pch;
};
following error everywhere:
Error 1 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int g:\argusweb\source\gssutil\xmlmessage.h 20
If is referring to the line:
log_comment(char *psz_comment, long bStart=0);
You can see it in the .h file below:
// XmlMessage.h: interface for the XmlMessage class.
//
//////////////////////////////////////////////////////////////////////
#if
!defined(AFX_XMLMESSAGE_H__9D3221FC_2D98_45A5_A442_FC067DA2064D__INCLUDED_)
#define AFX_XMLMESSAGE_H__9D3221FC_2D98_45A5_A442_FC067DA2064D__INCLUDED_
#define WINVER 0x0502
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "msxml2.h"
#include "gss_types.h"
class XmlMessage
{
public:
static TCHAR* Escape(const TCHAR * pchXML);
log_comment(char *psz_comment, long bStart=0);
CString GetParseError();
static CString FormatDate(CString sDate, CString sDTFormat = _T("%Y/%m/%d
%H:%M:%S"));
XmlMessage(const TCHAR* pchXML, long lSpecial);
XmlMessage();
explicit XmlMessage(const long lGssMsg);
virtual ~XmlMessage();
operator long () {
return m_lGssMsg;
};
operator TCHAR* () {
TCHAR* pch = new TCHAR[m_sXml.GetLength() + 1];
_tcscpy(pch, m_sXml);
return pch;
};