You have to link your application with the library containing these functions which is odbc32.lib
like you have done for your console application.
You can do that in the project settings at Linker - Input - Additional Dependencies
or using a
statement in one of your source files:
#pragma comment(lib, "odbc32.lib")