i write a class for Control mysql database;
but when i add it to my project:
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2143: syntax error : missing “)”(before“Constant”)
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2143: syntax error : missing “;”(before“Constant”)
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2059: syntax error : “)”
all the include file and lib file is ok. and include to the preject.
can anyone help me?
stdAfx.h:
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#ifndef debug
#define debug 1
#endif
//#include <afxsock.h> // MFC socket extensions
#include <WinSock2.h>
#include <mswsock.h>
#pragma comment(lib, "ws2_32")
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#include <afxdb.h>
#endif // _AFX_NO_AFXCMN_SUPPORT
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
but when i add it to my project:
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2143: syntax error : missing “)”(before“Constant”)
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2143: syntax error : missing “;”(before“Constant”)
c:\Program Files\MySQL\MySQL Server 5.0\include\mysql.h(552) : error C2059: syntax error : “)”
all the include file and lib file is ok. and include to the preject.
can anyone help me?
stdAfx.h:
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#ifndef debug
#define debug 1
#endif
//#include <afxsock.h> // MFC socket extensions
#include <WinSock2.h>
#include <mswsock.h>
#pragma comment(lib, "ws2_32")
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#include <afxdb.h>
#endif // _AFX_NO_AFXCMN_SUPPORT
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF","adoEOF")