MySQL Forums
Forum List  »  Connector/C++

there is some Conflicts with the file "stdAfx.h"
Posted by: sun mingze
Date: September 12, 2011 06:55PM

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")

Options: ReplyQuote


Subject
Views
Written By
Posted
there is some Conflicts with the file "stdAfx.h"
2850
September 12, 2011 06:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.