Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

there is some Conflicts with the file "stdAfx.h" (no replies)

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

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>