Compiling ADO in Visual Studio 2022 << Back



If you are using Visual Studio 2022 to compile an ADO project, you will get the following warning
Change your target platform to Windows 7 or below if your application requires backward compatibility for the ADO interface.
Instead of installing Windows 7.1 SDK and older build tools for Visual Studio, you can simply add the following lines at the beginning of your code if you want your program to run on Windows 7 and prior versions.

#define NTDDI_VERSION NTDDI_WIN7
#define _WIN32_WINNT _WIN32_WINNT_WIN7

or if you don't need to the program to be Windows 7 compatible, you can simply add this to the beginning of your code.

#define ADO_SUPPRESS_MESSAGE




Free Web Hosting