Accessing MySql using ODBC from MS Visual C++ 2005 Express Edition
Posted on 2006-06-16
I'm using the free Microsoft Visual C++ 2005 Express Edition and would like to use ODBC to access data from MySql. I tried using some sample code I found online but am having trouble building the application. I'm new to MS Visual C++ environment so I'm not sure I've included all the necessary header files, etc... The following code results in the following error.
#import "msado15.dll" rename ("EOF","adoEOF") no_namespace
.\SQLSample.cpp(5) : error C2001: newline in constant
C:\Program Files\Microsoft Visual Studio 8\VC\include\comdef.h(24) : fatal error C1083: Cannot open include file: 'ole2.h': No such file or directory