I\'m on a W32 machine trying to get a connection with a DB. For that purpose, I tried starting testing an example program:
#include
#include
ordering header files does not matter. Just ensure that your project contains in its properties the following include directory:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
where are found (a priori):
windows.h
sqlext.h
sqltypes.h
sql.h
This suffices in making your commands recognized and compile without any problem.
just change include declarations like this:
#include <iostream>
#include <windows.h>
#include <sql.h>
#include <sqltypes.h>
#include <sqlext.h>
I have found with stdafx.h header that the include order should be instead:
#include <iostream>
#include <windows.h>
#include <sqlext.h>
#include <sqltypes.h>
#include <sql.h>